Skip to content

Commit

Permalink
Merge pull request #142 from DimitrisRK/assign-deep-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha authored Nov 7, 2021
2 parents 57e8250 + 9b385ea commit 6e76387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function assignDeep(object, value) {
const copy = {};
for (const key in object) {
copy[key] =
typeof object[key] === 'object' ? assignDeep(object[key], value) : value;
typeof object[key] === 'object' && !isNullish(object[key]) ? assignDeep(object[key], value) : value;
}
return copy;
}
Expand Down

0 comments on commit 6e76387

Please sign in to comment.