Skip to content

Commit 7de652d

Browse files
authored
Merge pull request #3755 from swagger-api/bug/auth-display-regression
Fix auth icon display regression
2 parents 7c195f0 + 897362a commit 7de652d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/plugins/auth/selectors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const shownDefinitions = createSelector(
1010

1111
export const definitionsToAuthorize = createSelector(
1212
state,
13-
() =>( { specSelectors } ) => {
13+
() => ( { specSelectors } ) => {
1414
let definitions = specSelectors.securityDefinitions()
1515
let list = List()
1616

@@ -27,7 +27,7 @@ export const definitionsToAuthorize = createSelector(
2727
)
2828

2929

30-
export const getDefinitionsByNames = ( state, securities ) =>( { specSelectors } ) => {
30+
export const getDefinitionsByNames = ( state, securities ) => ( { specSelectors } ) => {
3131
let securityDefinitions = specSelectors.securityDefinitions()
3232
let result = List()
3333

@@ -64,7 +64,7 @@ export const authorized = createSelector(
6464
)
6565

6666

67-
export const isAuthorized = ( state, securities ) =>( { authSelectors } ) => {
67+
export const isAuthorized = ( state, securities ) => ( { authSelectors } ) => {
6868
let authorized = authSelectors.authorized()
6969

7070
if(!List.isList(securities)) {

src/core/plugins/oas3/auth-extensions/wrap-selectors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { isOAS3 as isOAS3Helper } from "../helpers"
66
// Helpers
77

88
function onlyOAS3(selector) {
9-
return (ori, system) => (...args) => {
9+
return (ori, system) => (state, ...args) => {
1010
const spec = system.getSystem().specSelectors.specJson()
1111
if(isOAS3Helper(spec)) {
1212
return selector(...args)
@@ -20,7 +20,7 @@ const nullSelector = createSelector(() => null)
2020

2121
const OAS3NullSelector = onlyOAS3(nullSelector)
2222

23-
// Hasta la vista, authentication!
23+
// Hasta la vista, authorization!
2424
export const shownDefinitions = OAS3NullSelector
2525
export const definitionsToAuthorize = OAS3NullSelector
2626
export const getDefinitionsByNames = OAS3NullSelector

0 commit comments

Comments
 (0)