Don't break on login when activity panel is disabled
This commit is contained in:
parent
1d338417e9
commit
f86bc070de
1 changed files with 5 additions and 3 deletions
|
|
@ -39,9 +39,11 @@ const authProvider = {
|
||||||
)
|
)
|
||||||
// Avoid going to create admin dialog after logout/login without a refresh
|
// Avoid going to create admin dialog after logout/login without a refresh
|
||||||
config.firstTime = false
|
config.firstTime = false
|
||||||
startEventStream().catch((e) =>
|
if (config.devActivityPanel) {
|
||||||
console.log('error setting up event stream:', e)
|
startEventStream().catch((e) =>
|
||||||
)
|
console.log('error setting up event stream:', e)
|
||||||
|
)
|
||||||
|
}
|
||||||
return response
|
return response
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue