Browse Source

fix: avoid mapping Immutable.Map as React children (#6165)

Ref https://github.com/immutable-js/immutable-js/issues/667
bubble
geraldglynn 4 years ago
committed by GitHub
parent
commit
93020e2803
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/core/plugins/oas3/components/callbacks.jsx

+ 3
- 3
src/core/plugins/oas3/components/callbacks.jsx View File

@@ -12,15 +12,15 @@ const Callbacks = (props) => {
return <span>No callbacks</span>
}

let callbackElements = callbacks.map((callback, callbackName) => {
let callbackElements = callbacks.entrySeq().map(([callbackName, callback]) => {
return <div key={callbackName}>
<h2>{callbackName}</h2>
{ callback.map((pathItem, pathItemName) => {
{ callback.entrySeq().map(([pathItemName, pathItem]) => {
if(pathItemName === "$$ref") {
return null
}
return <div key={pathItemName}>
{ pathItem.map((operation, method) => {
{ pathItem.entrySeq().map(([method, operation]) => {
if(method === "$$ref") {
return null
}


Loading…
Cancel
Save