Skip to content

Commit babdbe4

Browse files
committed
Hotfix null dict trunsfer
1 parent a247950 commit babdbe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

general.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export function transferNestedDict(dictA: any, dictB: any, ignoreNoneExistingKey
7676
if (dictB[key] == null && ignoreNoneExistingKeys) continue;
7777
if (Array.isArray(dictA[key])) {
7878
dictB[key] = dictA[key];
79-
} else if (typeof dictA[key] === 'object') {
79+
}
80+
else if (typeof dictA[key] === 'object' && dictA[key] !== null) {
8081
if (typeof dictB[key] !== 'object') {
8182
dictB[key] = {};
8283
}

0 commit comments

Comments
 (0)