Skip to content

Commit

Permalink
Core Data: Clean up undo reducer comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Aug 15, 2019
1 parent f241c4e commit f823e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-data/src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export function undo( state = UNDO_INITIAL_STATE, action ) {
}

// Transient edits don't create an undo level, but are
// added to the last level right before a new level
// is added.
// reachable in the next meaningful edit to which they
// are merged. They are defined in the entity's config.
if ( ! Object.keys( action.edits ).some( ( key ) => ! action.transientEdits[ key ] ) ) {
const nextState = [ ...state ];
nextState.flattenedUndo = { ...state.flattenedUndo, ...action.edits };
Expand Down

0 comments on commit f823e03

Please sign in to comment.