don't return hidden presets in recent

This commit is contained in:
Martin Raifer
2022-09-23 15:01:57 +02:00
parent e9bdd79887
commit 4f34e28431
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -74,6 +74,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
* Better fallback icons for untagged points, vertices, lines and areas ([#9157])
* Add fallback values for access field for barrier presets
* Support incrementing cardinal directions with the up/down buttons ([#9141], thanks [@k-yle])
* Don't suggest (newly) hidden presets in preset selection list
#### :hammer: Development
* Reduce uses of unsafe html injecting code
* Upgrade dependencies: maki to `v8.0`, `osm-community-index` to `v5.2`, `d3` to `v7.6`, `togeojson` to `v5.2`, `mocha` to `v10`
+3 -1
View File
@@ -440,7 +440,9 @@ export function presetIndex() {
_this.recent = () => {
return presetCollection(
utilArrayUniq(_this.getRecents().map(d => d.preset))
utilArrayUniq(_this.getRecents()
.map(d => d.preset)
.filter(d => d.searchable !== false))
);
};