Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhuish committed Mar 20, 2024
1 parent e1658cf commit d9b8fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function readPageOptionsFromFile(path: string, routeBlockLang: RouteBlockLang) {

if (block) {
const options = readPageOptionsFromBlock(block, routeBlockLang) || {} as DefinePageOptions
if (options.type)
if (!options.type)
options.type = (typeof block.attrs.type === 'string') && block.attrs.type.length ? block.attrs.type : 'page'
}

Expand Down

0 comments on commit d9b8fd2

Please # to comment.