forked from MapComplete/MapComplete
Search: disable filters with a search field, see #2141
This commit is contained in:
parent
c176c6adae
commit
6f9a7cb607
1 changed files with 4 additions and 0 deletions
|
@ -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(" ") ?? [])]))
|
||||
|
|
Loading…
Reference in a new issue