[v10.2.x] SignedInUser: Only register echo backend if user is signed in (#78577)

SignedInUser: Only register echo backend if user is signed in (#78545)

fix SignedIn checks

(cherry picked from commit 5dd5ed9b30)

Co-authored-by: Jo <joao.guerreiro@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]andJo authored and GitHub committed 2023-11-23 13:08:40 +01:00
1 parent f36327d01e
commit 0e0ebc5712
1 file changed
+1 -2
+1 -2
View File
@@ -15,7 +15,6 @@ import { createRoot } from 'react-dom/client';
import {
locationUtil,
monacoLanguageRegistry,
OrgRole,
setLocale,
setTimeZoneResolver,
setWeekStart,
@@ -280,7 +279,7 @@ function initEchoSrv() {
}
});
if (contextSrv.user.orgRole !== OrgRole.None) {
if (contextSrv.user.orgRole !== '') {
registerEchoBackend(new PerformanceBackend({}));
}