ソースを参照

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

Ref https://github.com/immutable-js/immutable-js/issues/667
bubble
geraldglynn 4年前
committed by GitHub
コミット
93020e2803
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/core/plugins/oas3/components/callbacks.jsx

+ 3
- 3
src/core/plugins/oas3/components/callbacks.jsx ファイルの表示

@@ -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
}


読み込み中…
キャンセル
保存