Skip to content

Commit

Permalink
Correct bug with checking status of Nav post
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored and adamziel committed Nov 24, 2021
1 parent 2219fa5 commit 1263ad3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function useNavigationMenu( navigationMenuId ) {

// getEditedEntityRecord will return the post regardless of status.
// Therefore if the found post is not published then we should ignore it.
if ( navigationMenuId?.status !== 'publish' ) {
if ( navigationMenu?.status !== 'publish' ) {
navigationMenu = null;
}

Expand Down

0 comments on commit 1263ad3

Please sign in to comment.