From 93020e280318f850df5f1f6dc5d9f155f3f7dbf9 Mon Sep 17 00:00:00 2001 From: geraldglynn Date: Mon, 22 Jun 2020 16:57:00 +0100 Subject: [PATCH] fix: avoid mapping Immutable.Map as React children (#6165) Ref https://github.com/immutable-js/immutable-js/issues/667 --- src/core/plugins/oas3/components/callbacks.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/plugins/oas3/components/callbacks.jsx b/src/core/plugins/oas3/components/callbacks.jsx index e03319c9..9a9eeeb4 100644 --- a/src/core/plugins/oas3/components/callbacks.jsx +++ b/src/core/plugins/oas3/components/callbacks.jsx @@ -12,15 +12,15 @@ const Callbacks = (props) => { return No callbacks } - let callbackElements = callbacks.map((callback, callbackName) => { + let callbackElements = callbacks.entrySeq().map(([callbackName, callback]) => { return

{callbackName}

- { callback.map((pathItem, pathItemName) => { + { callback.entrySeq().map(([pathItemName, pathItem]) => { if(pathItemName === "$$ref") { return null } return
- { pathItem.map((operation, method) => { + { pathItem.entrySeq().map(([method, operation]) => { if(method === "$$ref") { return null }