We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ecb040 commit 4247aabCopy full SHA for 4247aab
src/runtime/composables/useStudio.ts
@@ -188,6 +188,10 @@ export const useStudio = () => {
188
const { pages } = callWithNuxt<any>(nuxtApp, useContentState)
189
190
const contents = await Promise.all(Object.keys(pages.value).map(async (key) => {
191
+ if (!pages.value[key]) {
192
+ return null
193
+ }
194
+
195
return await findContentWithId(pages.value[key]._id)
196
}))
197
0 commit comments