Skip to content

Commit 4247aab

Browse files
committedJan 17, 2024
fix(renderer): not existing page
1 parent 9ecb040 commit 4247aab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/runtime/composables/useStudio.ts

+4
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ export const useStudio = () => {
188188
const { pages } = callWithNuxt<any>(nuxtApp, useContentState)
189189

190190
const contents = await Promise.all(Object.keys(pages.value).map(async (key) => {
191+
if (!pages.value[key]) {
192+
return null
193+
}
194+
191195
return await findContentWithId(pages.value[key]._id)
192196
}))
193197

0 commit comments

Comments
 (0)
Please sign in to comment.