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 and michalczaplinski committed Dec 5, 2024
1 parent f6f3bdd commit 16adfff
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

0 comments on commit 16adfff

Please sign in to comment.