Skip to content

Commit a62986b

Browse files
committed
refactor: 完善判断空逻辑
1 parent d33ff35 commit a62986b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/wwwroot/modules/utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ const deepMerge = (obj1, obj2, skipNull = true) => {
801801
}
802802
else {
803803
const value = obj2[key];
804-
if (skipNull && value === null) {
804+
if (skipNull && (value === null || value === void 0)) {
805805
continue;
806806
}
807807
obj1[key] = obj2[key];

0 commit comments

Comments
 (0)