website refactor
This commit is contained in:
@@ -366,7 +366,7 @@ export function buildPath(
|
||||
let route: any = routes;
|
||||
|
||||
for (const part of parts) {
|
||||
route = route[part];
|
||||
route = (route as Record<string, any>)[part];
|
||||
if (!route) {
|
||||
throw new Error(`Unknown route: ${routeName}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user