Small improvements

This commit is contained in:
Pieter Vander Vennet 2021-09-07 00:23:00 +02:00
parent e889d1eff1
commit 780d353c8d
6 changed files with 8 additions and 9 deletions

View file

@ -221,9 +221,7 @@ export class Utils {
const sourceV = source[key];
const targetV = target[key]
if (sourceV?.length !== undefined && targetV?.length !== undefined && key.startsWith("+")) {
target[key] = targetV.concat(sourceV)
} else if (typeof sourceV === "object") {
if (typeof sourceV === "object") {
if (sourceV === null) {
target[key] = null
} else if (targetV === undefined) {