Don't break on login when activity panel is disabled

This commit is contained in:
Deluan 2020-12-13 12:16:02 -05:00 committed by Joe Stump
parent 60605f8d1b
commit a713264b2c
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -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) => {