fix(editor): Fix initialize authenticated features (#9867)

This commit is contained in:
Csaba Tuncsik
2024-06-26 13:03:04 +02:00
committed by GitHub
parent 5bc58efde9
commit 4de58dcbf5
4 changed files with 19 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ import { EnterpriseEditionFeature, VIEWS, EDITABLE_CANVAS_VIEWS } from '@/consta
import { useTelemetry } from '@/composables/useTelemetry';
import { middleware } from '@/utils/rbac/middleware';
import type { RouterMiddleware } from '@/types/router';
import { initializeCore } from '@/init';
import { initializeAuthenticatedFeatures, initializeCore } from '@/init';
import { tryToParseNumber } from '@/utils/typesUtils';
import { projectsRoutes } from '@/routes/projects.routes';
@@ -777,6 +777,7 @@ router.beforeEach(async (to: RouteLocationNormalized, from, next) => {
*/
await initializeCore();
await initializeAuthenticatedFeatures();
/**
* Redirect to setup page. User should be redirected to this only once