Skip to content

Commit

Permalink
Refactor: simplify navigation title check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 10, 2025
1 parent 68dee39 commit 77e23ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/block-library/src/navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ export const settings = {
ref
);

if ( ! navigation?.title ) {
return;
}

if ( navigation.title === metadata.title ) {
if ( ! navigation?.title || navigation.title === metadata.title ) {
return;
}

Expand Down

0 comments on commit 77e23ec

Please sign in to comment.