forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
cd9e03dd6f
commit
b300fffdc5
156 changed files with 4436 additions and 1318 deletions
|
|
@ -129,8 +129,8 @@ export default class TagRenderingConfig {
|
|||
this.id
|
||||
)
|
||||
}
|
||||
if(json.labels && !Array.isArray( json.labels)){
|
||||
throw (`Invalid labels at ${context}: labels should be a list of strings, but got a ${typeof json.labels}`)
|
||||
if (json.labels && !Array.isArray(json.labels)) {
|
||||
throw `Invalid labels at ${context}: labels should be a list of strings, but got a ${typeof json.labels}`
|
||||
}
|
||||
|
||||
this.labels = json.labels ?? []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue