Add last missing ids

This commit is contained in:
Pieter Vander Vennet 2021-09-26 20:08:40 +02:00
parent 0ca19a5a03
commit d65257b2c5
8 changed files with 32 additions and 7 deletions

View file

@ -276,9 +276,9 @@ export default class LayerConfig {
this.tagRenderings = trs(json.tagRenderings, false);
const missingIds = json.tagRenderings.filter(tr => typeof tr !== "string" && tr["builtin"] === undefined && tr["id"] === undefined);
const missingIds = json.tagRenderings?.filter(tr => typeof tr !== "string" && tr["builtin"] === undefined && tr["id"] === undefined) ?? [];
if(missingIds.length > 0){
if(missingIds.length > 0 && official){
console.error("Some tagRenderings of", this.id, "are missing an id:", missingIds)
throw "Missing ids in tagrenderings"
}