Skip to content

Commit

Permalink
Use safeSet in recursivelyAssign (#3323)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Apr 27, 2023
1 parent 4bdb911 commit 8f701f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export function recursivelyAssign<T1 extends T2, T2 extends Record<string, any>>
continue;
}
if ((sourceValue !== null && sourceValue !== undefined) || !ignoreNullish) {
target[sourceKey as keyof T1] = sourceValue;
safeSet(target, sourceKey, sourceValue);
continue;
}
}
Expand Down

0 comments on commit 8f701f4

Please sign in to comment.