From f86bc070deeff5aaffa528d2b9d1db9bfafd15f1 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 13 Dec 2020 12:16:02 -0500 Subject: [PATCH] Don't break on login when activity panel is disabled --- ui/src/authProvider.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) => {