A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(router): Set the correct loader return value for the new version of the router component
haitaooe899f4b36227
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.tsindex 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) {