Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Divers committed Aug 30, 2024
1 parent 13dd7e5 commit 59f45bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const classes = ref(['layout',
'layout-default',])
const primaryMenuItems = computed(() => {
// convert file to typescript if we want to avoid this
// convert file to typescript if we want to use '?' operator to avoid this
// ex: return globalStore?.header?.primary
return globalStore && (globalStore.header && globalStore.header.primary) ? globalStore.header.primary : null
})
Expand Down

0 comments on commit 59f45bc

Please sign in to comment.