Themes(sauna): add sauna question to sports centre

This commit is contained in:
Pieter Vander Vennet 2025-07-03 17:51:24 +02:00
parent c701247066
commit 5f932c80a3
3 changed files with 33 additions and 2 deletions

View file

@ -505,7 +505,11 @@ class WarnForUnsubstitutedLayersInTheme extends DesugaringStep<ThemeConfigJson>
if (layer["builtin"] !== undefined) {
continue
}
if (layer["source"]["geojson"] !== undefined) {
if(layer["override"]!==undefined){
context.err("Got an `override` block without a `builtin`-specification")
continue
}
if (layer["source"]?.["geojson"] !== undefined) {
// We turn a blind eye for import layers
continue
}