Skip to content

Commit

Permalink
PLANET-7203 Fix menu notice showing multiple times
Browse files Browse the repository at this point in the history
This would happen whenever we would toggle some of the menu settings
  • Loading branch information
mleray committed Jul 31, 2023
1 parent b7e841b commit 86440cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/src/js/menu_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ const menuEditorRestrictions = () => {
return;
}

showInfoNoticeMessage();
const infoNotice = document.querySelector('.custom-notice-info');
if (!infoNotice) {
showInfoNoticeMessage();
}

// Define depth limit for editor
/* global wpNavMenu */
Expand Down

0 comments on commit 86440cc

Please sign in to comment.