Skip to content

Commit

Permalink
Update reducer to fall back to undefined
Browse files Browse the repository at this point in the history
Co-authored-by: Ramon <ramonjd@users.noreply.github.com>
  • Loading branch information
andrewserong and ramonjd authored Sep 5, 2023
1 parent 0d51d0d commit 01d31d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1914,9 +1914,8 @@ export function blockEditingModes( state = new Map(), action ) {
}

export function openedBlockSettingsMenu( state = null, action ) {
switch ( action.type ) {
case 'SET_OPENED_BLOCK_SETTINGS_MENU':
return action.clientId || null;
if ( 'SET_OPENED_BLOCK_SETTINGS_MENU' === action.type ) {
return action?.clientId;
}
return state;
}
Expand Down

0 comments on commit 01d31d2

Please sign in to comment.