Skip to content

Commit

Permalink
fix: useGetPage return undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 31, 2024
1 parent 29e9d5f commit 33ceeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/page.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export async function getPage<TRender extends boolean = false>(input: {
return prev.updatedAt > current.updatedAt ? prev : current
})

let expandedNote: ExpandedNote | undefined
let expandedNote: ExpandedNote | null = null
if (page) {
expandedNote = await expandCrossbellNote({
note: page,
Expand Down

0 comments on commit 33ceeda

Please sign in to comment.