Skip to content

Commit 9b385ea

Browse files
authored
fix: Do not call assignDeep for null values.
1 parent 57e8250 commit 9b385ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function assignDeep(object, value) {
8484
const copy = {};
8585
for (const key in object) {
8686
copy[key] =
87-
typeof object[key] === 'object' ? assignDeep(object[key], value) : value;
87+
typeof object[key] === 'object' && !isNullish(object[key]) ? assignDeep(object[key], value) : value;
8888
}
8989
return copy;
9090
}

0 commit comments

Comments
 (0)