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