Search: disable filters with a search field, see #2141

This commit is contained in:
Pieter Vander Vennet 2024-09-14 14:23:16 +02:00
parent c176c6adae
commit 6f9a7cb607

View file

@ -47,6 +47,10 @@ export default class FilterSearch {
if (!option.osmTags) {
continue
}
if(option.fields.length > 0){
// Filters with a search field are not supported as of now, see #2141
continue
}
let terms = ([option.question.txt,
...(option.searchTerms?.[Locale.language.data] ?? option.searchTerms?.["en"] ?? [])]
.flatMap(term => [term, ...(term?.split(" ") ?? [])]))