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)
|
store.dispatch(buttonsAction)
|
||||||
|
|
||||||
//
|
if (this.props.oidc.length) {
|
||||||
const firstOpenIdClient = this.props.oidc[0]
|
const firstOpenIdClient = this.props.oidc[0]
|
||||||
|
|
||||||
this.userManager = getUserManagerForOpenIdConnectClient(
|
this.userManager = getUserManagerForOpenIdConnectClient(
|
||||||
store,
|
store,
|
||||||
firstOpenIdClient
|
firstOpenIdClient
|
||||||
)
|
)
|
||||||
|
}
|
||||||
handleServers(this.props.servers)
|
handleServers(this.props.servers)
|
||||||
initWebWorkers(
|
initWebWorkers(
|
||||||
this.props.routerBasename,
|
this.props.routerBasename,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user