Skip to content

🎧 Your Personal Streaming Service

Don't break on login when activity panel is disabled

Deluanf86bc070deef
diff --git a/ui/src/authProvider.js b/ui/src/authProvider.js
index 18562305c..ca22b4fc6 100644
--- a/ui/src/authProvider.js
+++ b/ui/src/authProvider.js
@@ -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) => {