Don't break on login when activity panel is disabled

This commit is contained in:
Deluan 2020-12-13 12:16:02 -05:00
parent 1d338417e9
commit f86bc070de
1 changed files with 5 additions and 3 deletions

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