From 30d91afe44c2789a6bd5fb298a866d9b5ce967d9 Mon Sep 17 00:00:00 2001 From: Copons Date: Mon, 26 Apr 2021 18:32:29 +0100 Subject: [PATCH] Fix incorrect action prop --- packages/edit-post/src/store/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-post/src/store/reducer.js b/packages/edit-post/src/store/reducer.js index 5d032572f5c45..c12d54ec97298 100644 --- a/packages/edit-post/src/store/reducer.js +++ b/packages/edit-post/src/store/reducer.js @@ -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; }