forked from MapComplete/MapComplete
Add last missing ids
This commit is contained in:
parent
0ca19a5a03
commit
d65257b2c5
8 changed files with 32 additions and 7 deletions
|
@ -2,7 +2,7 @@ import {Utils} from "../Utils";
|
|||
|
||||
export default class Constants {
|
||||
|
||||
public static vNumber = "0.9.13";
|
||||
public static vNumber = "0.9.14";
|
||||
|
||||
// The user journey states thresholds when a new feature gets unlocked
|
||||
public static userJourney = {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue