Don't break on login when activity panel is disabled
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user