diff --git a/packages/jaen-pages/src/contexts/template.tsx b/packages/jaen-pages/src/contexts/template.tsx index ae5e4d11..c6ca346c 100644 --- a/packages/jaen-pages/src/contexts/template.tsx +++ b/packages/jaen-pages/src/contexts/template.tsx @@ -58,7 +58,7 @@ export const TemplateProvider: React.FC = ({ const Template = page.template ? findTemplate(page.template) : null - if (isDynamic) { + if (pathName && isDynamic) { jaenPageContext.id = dynamicPaths[pathName] }