Skip to content

Commit

Permalink
fix: fix type error
Browse files Browse the repository at this point in the history
Type 'false' cannot be used as an index type.
  • Loading branch information
schettn authored Sep 4, 2021
1 parent 8ce78ef commit 5ffba24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jaen-pages/src/contexts/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const TemplateProvider: React.FC<TemplateProviderProps> = ({

const Template = page.template ? findTemplate(page.template) : null

if (isDynamic) {
if (pathName && isDynamic) {
jaenPageContext.id = dynamicPaths[pathName]
}

Expand Down

0 comments on commit 5ffba24

Please sign in to comment.