Skip to content

Commit

Permalink
fix: DocumentDrivenNotFound shall use the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jul 7, 2022
1 parent 230bbad commit d41205a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/pages/document-driven.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ useContentHead(page)

<template>
<div class="document-driven-page">
<NuxtLayout v-if="page" :name="page.layout || 'default'">
<ContentRenderer :key="page._id" :value="page">
<NuxtLayout :name="page?.layout || 'default'">
<ContentRenderer v-if="page" :key="page._id" :value="page">
<template #empty="{ value }">
<DocumentDrivenEmpty :value="value" />
</template>
</ContentRenderer>
<DocumentDrivenNotFound v-else />
</NuxtLayout>
<DocumentDrivenNotFound v-else />
</div>
</template>

0 comments on commit d41205a

Please sign in to comment.