fix: Add entrySeq() to bodyProperties.map() (#6267)
* Added immutable guard to bodyProperties
This commit is contained in:
@@ -134,7 +134,7 @@ const RequestBody = ({
|
|||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
{
|
{
|
||||||
bodyProperties.map((prop, key) => {
|
Map.isMap(bodyProperties) && bodyProperties.entrySeq().map(([key, prop]) => {
|
||||||
let commonExt = showCommonExtensions ? getCommonExtensions(prop) : null
|
let commonExt = showCommonExtensions ? getCommonExtensions(prop) : null
|
||||||
const required = schemaForMediaType.get("required", List()).includes(key)
|
const required = schemaForMediaType.get("required", List()).includes(key)
|
||||||
const type = prop.get("type")
|
const type = prop.get("type")
|
||||||
|
|||||||
Reference in New Issue
Block a user