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

fix SignedIn checks
This commit is contained in:
Jo
2023-11-23 10:11:53 +01:00
committed by GitHub
parent f3d742caeb
commit 5dd5ed9b30
+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({}));
}