forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
parent
c62705c1dd
commit
c167094b65
12 changed files with 251 additions and 139 deletions
|
|
@ -126,6 +126,9 @@ 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}`)
|
||||
}
|
||||
|
||||
this.labels = json.labels ?? []
|
||||
if (typeof json.classes === "string") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue