diff --git a/editor/store/selectors.js b/editor/store/selectors.js index 04d2902fda1743..33b57d93410242 100644 --- a/editor/store/selectors.js +++ b/editor/store/selectors.js @@ -97,8 +97,7 @@ export function isSavingMetaBoxes( state ) { * @return {boolean} Whether undo history exists. */ export function hasEditorUndo( state ) { - const { past, present } = state.editor; - return past.length > 1 || last( past ) !== present; + return state.editor.past.length > 0; } /**