diff --git a/components/LayoutWrapper.vue b/components/LayoutWrapper.vue
index 67192204f7cf580b8b1747202dd83b397749cbad..05c946b0647c70703ef74f18fa7b9fbd3bbe4520 100644
--- a/components/LayoutWrapper.vue
+++ b/components/LayoutWrapper.vue
@@ -49,7 +49,7 @@ function onScroll() {
     <slot v-if="navDrawer" name="drawer" :drawer="drawer">
       <NavDrawer :drawer="drawer" />
     </slot>
-    <NavTableOfContent v-if="toc" :links="page.body.toc.links" />
+    <NavTableOfContent v-if="toc?.body?.toc?.links" :links="page.body.toc.links" />
     <nav-back-to-top />
   </VApp>
 </template>