Only set a userManager if we have a non-empty oidc array
This commit is contained in:
parent
ba33493cf8
commit
cfd1cd0797
13
src/App.js
13
src/App.js
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user