forked from MapComplete/MapComplete
Fix generateLayerOverview
This commit is contained in:
parent
9b8e447f92
commit
adcf23a54f
2 changed files with 15 additions and 6 deletions
7
Utils.ts
7
Utils.ts
|
@ -456,6 +456,13 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
console.log("Added custom css file ", location)
|
||||
}
|
||||
|
||||
public static PushList<T>(target: T[], source?: T[]) {
|
||||
if (source === undefined) {
|
||||
return
|
||||
}
|
||||
target.push(...source)
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies all key-value pairs of the source into the target. This will change the target
|
||||
* If the key starts with a '+', the values of the list will be appended to the target instead of overwritten
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue