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 May 11, 2021
1 parent 767cfa2 commit 30d91af
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 30d91af

Please sign in to comment.