forked from MapComplete/MapComplete
Add option that a TagRendering can automatically introduce a builtin filter when added
This commit is contained in:
parent
f33e9f78b7
commit
5bd14c64da
10 changed files with 54 additions and 16 deletions
|
@ -1761,6 +1761,10 @@ export class ValidateFilter extends DesugaringStep<FilterConfigJson> {
|
|||
// Calling another filter, we skip
|
||||
return filter
|
||||
}
|
||||
if(filter === undefined){
|
||||
context.err("Trying to validate a filter, but this filter is undefined")
|
||||
return undefined
|
||||
}
|
||||
for (const option of filter.options) {
|
||||
for (let i = 0; i < option.fields?.length ?? 0; i++) {
|
||||
const field = option.fields[i]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue