Skip to content
Snippets Groups Projects
Commit 4ded93d7 authored by Jack Reed's avatar Jack Reed Committed by Chris Beer
Browse files

More safely navigate deep destructuring of config.auth

parent d4c418e8
Branches
Tags
No related merge requests found
...@@ -73,7 +73,7 @@ export function* refetchInfoResponses({ serviceId }) { ...@@ -73,7 +73,7 @@ export function* refetchInfoResponses({ serviceId }) {
/** try to start any non-interactive auth flows */ /** try to start any non-interactive auth flows */
export function* doAuthWorkflow({ infoJson, windowId }) { export function* doAuthWorkflow({ infoJson, windowId }) {
const auths = yield select(getAuth); const auths = yield select(getAuth);
const { auth: { serviceProfiles } } = yield select(getConfig); const { auth: { serviceProfiles = [] } = {} } = yield select(getConfig);
const nonInteractiveAuthFlowProfiles = serviceProfiles.filter(p => p.external || p.kiosk); const nonInteractiveAuthFlowProfiles = serviceProfiles.filter(p => p.external || p.kiosk);
// try to get an untried, non-interactive auth service // try to get an untried, non-interactive auth service
......
...@@ -10,7 +10,7 @@ export const getAuthProfiles = createSelector( ...@@ -10,7 +10,7 @@ export const getAuthProfiles = createSelector(
[ [
getConfig, getConfig,
], ],
({ auth: { serviceProfiles = [] } }) => serviceProfiles, ({ auth: { serviceProfiles = [] } = {} }) => serviceProfiles,
); );
/** */ /** */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment