Skip to content

Commit

Permalink
fix(core): mutating object merger (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Jan 17, 2025
1 parent 814c33f commit 71f5f6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/core/src/merge/mergers/dict-assign.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export function daffDictAssignMerger<T extends Record<string, unknown> = Record<string, unknown>>(a: T, b: T): T {
return Object.assign(a, b);
return {
...a,
...b,
};
}

0 comments on commit 71f5f6f

Please sign in to comment.