From 83541329157a0582ef7358e46e965590402e8f76 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Mon, 2 Oct 2017 14:45:51 -0700 Subject: [PATCH] Fix problems regarding request body display --- src/core/plugins/oas3/auth-extensions/wrap-selectors.js | 3 ++- src/core/plugins/oas3/components/request-body.jsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/plugins/oas3/auth-extensions/wrap-selectors.js b/src/core/plugins/oas3/auth-extensions/wrap-selectors.js index 530b43c2..908c92e5 100644 --- a/src/core/plugins/oas3/auth-extensions/wrap-selectors.js +++ b/src/core/plugins/oas3/auth-extensions/wrap-selectors.js @@ -1,4 +1,5 @@ import { createSelector } from "reselect" +import { List } from "immutable" import { isOAS3 as isOAS3Helper } from "../helpers" @@ -23,6 +24,6 @@ const OAS3NullSelector = onlyOAS3(nullSelector) export const shownDefinitions = OAS3NullSelector export const definitionsToAuthorize = OAS3NullSelector export const getDefinitionsByNames = OAS3NullSelector -export const authorized = OAS3NullSelector +export const authorized = onlyOAS3(() => List()) export const isAuthorized = OAS3NullSelector export const getConfigs = OAS3NullSelector diff --git a/src/core/plugins/oas3/components/request-body.jsx b/src/core/plugins/oas3/components/request-body.jsx index 48976ef5..7094e068 100644 --- a/src/core/plugins/oas3/components/request-body.jsx +++ b/src/core/plugins/oas3/components/request-body.jsx @@ -6,6 +6,7 @@ import { OrderedMap } from "immutable" const RequestBody = ({ requestBody, getComponent, + getConfigs, specSelectors, contentType, isExecute, @@ -27,6 +28,7 @@ const RequestBody = ({ }