Skip to content

Commit

Permalink
fix(renderer): not existing page
Browse files Browse the repository at this point in the history
  • Loading branch information
larbish committed Jan 17, 2024
1 parent 9ecb040 commit 4247aab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/composables/useStudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export const useStudio = () => {
const { pages } = callWithNuxt<any>(nuxtApp, useContentState)

const contents = await Promise.all(Object.keys(pages.value).map(async (key) => {
if (!pages.value[key]) {
return null
}

return await findContentWithId(pages.value[key]._id)
}))

Expand Down

0 comments on commit 4247aab

Please sign in to comment.