From d02619ae7c6434feeac0efa4049dae6e3cb7bff1 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 7 Dec 2023 18:35:29 +0100 Subject: [PATCH] check if toc exists --- components/LayoutWrapper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/LayoutWrapper.vue b/components/LayoutWrapper.vue index 67192204..05c946b0 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> -- GitLab