Skip to content

Commit

Permalink
Core Data: Fix merged edits logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Aug 9, 2019
1 parent f1b18ad commit 28bae58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function* editEntityRecord( kind, name, recordId, edits ) {
edits: Object.keys( edits ).reduce( ( acc, key ) => {
const recordValue = record[ key ];
const value = mergedEdits[ key ] ?
merge( recordValue, edits[ key ] ) :
merge( {}, recordValue, edits[ key ] ) :
edits[ key ];
acc[ key ] = isEqual( recordValue, value ) ? undefined : value;
return acc;
Expand Down

0 comments on commit 28bae58

Please sign in to comment.