Skip to content

Commit f967b4a

Browse files
author
Austin Johnson
committed
Fix poolid getter in getCredentials
1 parent 0e75ebf commit f967b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lex-web-ui/src/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ export default {
11371137
return awsCredentials;
11381138
}
11391139
region = context.state.config.cognito.region || context.state.config.region || 'us-east-1';
1140-
poolId = context.state.config.cognito.poolId;
1140+
const poolId = context.state.config.cognito.poolId || localStorage.getItem('poolId');
11411141
const appUserPoolName = context.state.config.cognito.appUserPoolName || localStorage.getItem('appUserPoolName');
11421142
poolName = `cognito-idp.${region}.amazonaws.com/${appUserPoolName}`;
11431143
const appUserPoolClientId = context.state.config.cognito.appUserPoolClientId || localStorage.getItem('appUserPoolClientId')

0 commit comments

Comments
 (0)