Skip to content

Commit

Permalink
revert: remove additional menu checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fpdrozd committed Mar 21, 2023
1 parent cebbc0a commit 5f83441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/theme/components/HeaderNavigation/DesktopMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
}
},
setup(props) {
const isMenuAvailable = computed(() => props.menu && !props.menu.isDisabled);
const isMenuAvailable = computed(() => !props.menu.isDisabled);
return {
isMenuAvailable
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/components/HeaderNavigation/MobileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
},
setup(props) {
const { isMobileMenuOpen, toggleMobileMenu } = useUiState();
const isMenuAvailable = computed(() => props.menu && !props.menu.isDisabled);
const isMenuAvailable = computed(() => !props.menu.isDisabled);
return {
isMenuAvailable,
Expand Down

0 comments on commit 5f83441

Please sign in to comment.