Skip to content

Commit

Permalink
Fix bug in diff function
Browse files Browse the repository at this point in the history
  • Loading branch information
tomohiroarakawa committed May 14, 2021
1 parent 59f2e28 commit f0d2a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function diff(document1: Document, document2: Document): Change {
change[key] = diff(document1[key], document2[key]);
}
// Otherwise, just copy the content to change
else {
else if (document1[key] !== document2[key]) {
change[key] = document2[key];
}
}
Expand Down

0 comments on commit f0d2a99

Please sign in to comment.