Skip to content

Commit 98458ad

Browse files
authored
Do not error out if menu is not loaded at all.
1 parent deb4608 commit 98458ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaffold/components/global/MainNavigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
},
3131
mounted () {
3232
// Fetch menu in SPA mode. Should be filled already in SSR mode, so this is a fallback.
33-
if (!this.menus.main.length) {
33+
if (!this.menus.main?.length) {
3434
this.$drupal.fetchMenu('main')
3535
}
3636
}

0 commit comments

Comments
 (0)