diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index 174ca6b2..975b919c 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -24,7 +24,10 @@ const routes: RouteNode[] = [ { path: '/', page: 'pages/Layout', - loader: guard.setupApp, + loader: async () => { + await guard.setupApp(); + return null; + }, guard: () => { const gr = guard.shouldLoginRequired(); if (!gr.ok) {