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
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ export function* refetchInfoResponses({ serviceId }) {
/** try to start any non-interactive auth flows */
export function* doAuthWorkflow({ infoJson, windowId }) {
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);
// try to get an untried, non-interactive auth service
......
......@@ -10,7 +10,7 @@ export const getAuthProfiles = createSelector(
[
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