fix: Add entrySeq() to bodyProperties.map() (#6267)

* Added immutable guard to  bodyProperties
This commit is contained in:
geraldglynn
2020-09-10 02:46:24 +01:00
committed by GitHub
parent f79e45be71
commit 0199b4785f

View File

@@ -134,7 +134,7 @@ const RequestBody = ({
<table>
<tbody>
{
bodyProperties.map((prop, key) => {
Map.isMap(bodyProperties) && bodyProperties.entrySeq().map(([key, prop]) => {
let commonExt = showCommonExtensions ? getCommonExtensions(prop) : null
const required = schemaForMediaType.get("required", List()).includes(key)
const type = prop.get("type")