Skip to content

Commit

Permalink
fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Apr 17, 2024
1 parent 2b62a23 commit 651babf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function selectExistingMenu( select, ref ) {
// requiring a post update to publish to show in frontend.
// To achieve that, index.php must reflect this validation only for published.
const isNavigationMenuPublishedOrDraft =
menuToUse.status === 'publish' || menuToUse.status === 'draft';
menuToUse?.status === 'publish' || menuToUse?.status === 'draft';

return {
isNavigationMenuResolved: hasResolvedNavigationMenu,
Expand Down

0 comments on commit 651babf

Please sign in to comment.