Skip to content

Commit

Permalink
Fix the fixedToolbar preference
Browse files Browse the repository at this point in the history
The defaultPreference wasn't being used
  • Loading branch information
johngodley committed Sep 30, 2021
1 parent 9b3e70c commit 83a49b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/editor-setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export default compose( [
settings.editor,
settings.iso,
blockTypes,
hasFixedToolbar || settings.editor?.hasFixedToolbar || false
// Use the default preference, if set, otherwise use the feature
settings.iso?.defaultPreferences?.fixedToolbar !== undefined ? settings.iso?.defaultPreferences?.fixedToolbar : hasFixedToolbar
),

// Reusable blocks
Expand Down

0 comments on commit 83a49b6

Please sign in to comment.