forked from MapComplete/MapComplete
Small improvements
This commit is contained in:
parent
e889d1eff1
commit
780d353c8d
6 changed files with 8 additions and 9 deletions
4
Utils.ts
4
Utils.ts
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue