fix: getPage mustLocal

This commit is contained in:
DIYgod
2023-06-05 23:36:39 +01:00
parent 97b9ea27e7
commit c94b90bcb4
+1 -1
View File
@@ -372,7 +372,7 @@ export async function getPage<TRender extends boolean = false>(input: {
noteId?: number
handle?: string // In order to be compatible with old drafts
}) {
const mustLocal = input.slug?.startsWith("local-")
const mustLocal = input.slug?.startsWith("local-") && !input.noteId
let page: NoteEntity | null = null