Search: fix loading previous searches, add 'clear history' buttons

This commit is contained in:
Pieter Vander Vennet 2024-09-05 02:53:25 +02:00
parent d90b6d82d0
commit 2ce9e7ca3c
5 changed files with 24 additions and 25 deletions

View file

@ -47,6 +47,7 @@ export default class ThemeSearch implements GeocodingProvider {
const sorted = MoreScreen.sortedByLowest(query, this._otherThemes, this._layersToIgnore)
console.log(">>>", sorted)
return sorted
.filter(sorted => sorted.lowest < 2)
.map(th => th.theme)
.filter(th => !th.hideFromOverview || this._knownHiddenThemes.data.has(th.id))
.slice(0, limit)