Only set a userManager if we have a non-empty oidc array

This commit is contained in:
dannyrb 2019-05-09 16:07:21 -04:00
parent ba33493cf8
commit cfd1cd0797

View File

@ -89,13 +89,14 @@ class App extends Component {
store.dispatch(buttonsAction)
//
const firstOpenIdClient = this.props.oidc[0]
if (this.props.oidc.length) {
const firstOpenIdClient = this.props.oidc[0]
this.userManager = getUserManagerForOpenIdConnectClient(
store,
firstOpenIdClient
)
this.userManager = getUserManagerForOpenIdConnectClient(
store,
firstOpenIdClient
)
}
handleServers(this.props.servers)
initWebWorkers(
this.props.routerBasename,