diff --git a/src/core/plugins/oas3/auth-extensions/wrap-selectors.js b/src/core/plugins/oas3/auth-extensions/wrap-selectors.js index 838e2dcd..087466c1 100644 --- a/src/core/plugins/oas3/auth-extensions/wrap-selectors.js +++ b/src/core/plugins/oas3/auth-extensions/wrap-selectors.js @@ -20,10 +20,10 @@ function onlyOAS3(selector) { export const definitionsToAuthorize = onlyOAS3(createSelector( state, - ({ specSelectors }) => { + ({specSelectors}) => specSelectors.securityDefinitions(), + (system, definitions) => { // Coerce our OpenAPI 3.0 definitions into monoflow definitions // that look like Swagger2 definitions. - let definitions = specSelectors.securityDefinitions() let list = List() definitions.entrySeq().forEach( ([ defName, definition ]) => { @@ -57,4 +57,4 @@ export const definitionsToAuthorize = onlyOAS3(createSelector( return list } -)) \ No newline at end of file +))