From b6b6991b955769f060adceb2105d7e4b0f2bc706 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 7 Aug 2023 13:44:46 +1000 Subject: [PATCH] chore(#9): update menu links javascript --- src/components/MenuItem.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/MenuItem.vue b/src/components/MenuItem.vue index a609c8a..30f63df 100644 --- a/src/components/MenuItem.vue +++ b/src/components/MenuItem.vue @@ -106,8 +106,10 @@ export default { isFlyout: ({ type }) => type === 'flyout', }, - mounted() { + created() { try { + // Attach client side only javascript. + if (!process.client) return if (this.isCollapsible) { delete require.cache[require.resolve('civictheme/components/00-base/collapsible/collapsible')] require('civictheme/components/00-base/collapsible/collapsible')