Let 'merge' deal with null
This commit is contained in:
parent
c1220da879
commit
261cde3e28
1 changed files with 3 additions and 0 deletions
3
Utils.ts
3
Utils.ts
|
@ -257,6 +257,9 @@ Note that these values can be prepare with javascript in the theme by using a [c
|
|||
}
|
||||
|
||||
const sourceV = source[key];
|
||||
if(target === null){
|
||||
return source
|
||||
}
|
||||
const targetV = target[key]
|
||||
if (typeof sourceV === "object") {
|
||||
if (sourceV === null) {
|
||||
|
|
Loading…
Reference in a new issue