Skip to content

Commit

Permalink
Don't persist mobile and publish sidebar to localStorage.
Browse files Browse the repository at this point in the history
Mobile and publish sidebars should when page reloads, even if they were open before.
  • Loading branch information
jorgefilipecosta committed Jan 18, 2018
1 parent 4d6af27 commit 6c256dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c256dd

Please sign in to comment.