Skip to content

Commit

Permalink
Fix write mode persisting after disabling the experiment
Browse files Browse the repository at this point in the history
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: getdave <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent cd26001 commit d0c372c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3041,9 +3041,7 @@ export const getBlockEditingMode = createRegistrySelector(
clientId = '';
}

const isNavMode =
select( preferencesStore )?.get( 'core', 'editorTool' ) ===
'navigation';
const isNavMode = isNavigationMode( state );

// If the editor is currently not in navigation mode, check if the clientId
// has an editing mode set in the regular derived map.
Expand Down

1 comment on commit d0c372c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in d0c372c.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12121023476
📝 Reported issues:

Please sign in to comment.