From abe0602ccfa9f1113dd6fa47afb0ca5b370bb997 Mon Sep 17 00:00:00 2001 From: shiro Date: Fri, 29 Mar 2024 11:40:12 +0900 Subject: [PATCH] Fix CI --- src/app.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index 865c05c..a1749c7 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -38,6 +38,7 @@ export default function App() { component: (p) => { // router bug: 'name' not in 'p', update when this is fixed const name = p.location.pathname.replace("/articles/", ""); + console.log("article matched ", name); const Article = lazy(getArticleComponent(name) as any); return (
!!getArticleComponent(name), + name: (name: string) => { + console.log("1 article matched ", name); + return !!getArticleComponent(name); + }, }, }, ] as RouteDefinition[]