diff --git a/web/ui/mantine-ui/src/App.tsx b/web/ui/mantine-ui/src/App.tsx index 2eb75dc24..4094ab9f3 100644 --- a/web/ui/mantine-ui/src/App.tsx +++ b/web/ui/mantine-ui/src/App.tsx @@ -162,10 +162,7 @@ const getPathPrefix = (path: string) => { } const pagePath = allPages.find((p) => path.endsWith(p.path))?.path; - if (pagePath === undefined) { - throw new Error(`Could not find base path for ${path}`); - } - return path.slice(0, path.length - pagePath.length); + return path.slice(0, path.length - (pagePath || "").length); }; const navLinkXPadding = "md";