Add option that a TagRendering can automatically introduce a builtin filter when added

This commit is contained in:
Pieter Vander Vennet 2024-07-18 15:35:56 +02:00
parent f33e9f78b7
commit 5bd14c64da
10 changed files with 54 additions and 16 deletions

View file

@ -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]