Skip to content

Commit

Permalink
Fix incorrect action prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Apr 26, 2021
1 parent 89a2947 commit 85b3603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function deviceType( state = 'Desktop', action ) {
export function blockInserterPanel( state = false, action ) {
switch ( action.type ) {
case 'SET_IS_LIST_VIEW_OPENED':
return action.value ? false : state;
return action.isOpen ? false : state;
case 'SET_IS_INSERTER_OPENED':
return action.value;
}
Expand Down

0 comments on commit 85b3603

Please sign in to comment.