Skip to content

Commit

Permalink
fix(core): fix recomputing of changesets when entity has unique prope…
Browse files Browse the repository at this point in the history
…rties

Closes #4749
  • Loading branch information
B4nan committed Sep 26, 2023
1 parent 556b81b commit d03afad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/unit-of-work/UnitOfWork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class UnitOfWork {
const cs = this.changeSetComputer.computeChangeSet(entity);

/* istanbul ignore else */
if (cs && !this.checkUniqueProps(changeSet)) {
if (cs && !this.checkUniqueProps(cs)) {
Object.assign(changeSet.payload, cs.payload);
helper(entity).__originalEntityData = this.comparator.prepareEntity(entity);
helper(entity).__touched = false;
Expand Down

0 comments on commit d03afad

Please sign in to comment.