From 6c256ddaab4d4da763cbd2b2ccd7d915bf4a8a67 Mon Sep 17 00:00:00 2001 From: Jorge Date: Tue, 16 Jan 2018 21:00:01 +0000 Subject: [PATCH] Don't persist mobile and publish sidebar to localStorage. Mobile and publish sidebars should when page reloads, even if they were open before. --- editor/store/reducer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/store/reducer.js b/editor/store/reducer.js index c3ad11076d10f..6efd5042fcd19 100644 --- a/editor/store/reducer.js +++ b/editor/store/reducer.js @@ -578,6 +578,8 @@ export function preferences( state = PREFERENCES_DEFAULTS, action ) { [ action.feature ]: ! state.features[ action.feature ], }, }; + case 'REDUX_SERIALIZE': + return omit( state, [ 'sidebars.mobile', 'sidebars.publish' ] ); } return state;