From 482d90c89362f095e49c67da82fce664237efb0a Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Mon, 4 Aug 2025 19:04:10 +0200 Subject: [PATCH] allows categories with spaces in filter --- .../lib/components/trail/map_with_elevation_maplibre.svelte | 2 -- web/src/lib/stores/trail_store.ts | 2 +- web/src/routes/profile/[handle]/trails/+page.svelte | 3 +-- web/src/routes/trails/+page.svelte | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte index 7abf7dc7..1afa8724 100644 --- a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte +++ b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte @@ -580,8 +580,6 @@ map.getCanvas().style.cursor = "inherit"; if (activeTrail !== null && trails[activeTrail] && !clusterTrails) { - console.log(data[activeTrail].features[0]); - addStartEndMarkers( trails[activeTrail], trails[activeTrail].id, diff --git a/web/src/lib/stores/trail_store.ts b/web/src/lib/stores/trail_store.ts index 31c40727..d5064a96 100644 --- a/web/src/lib/stores/trail_store.ts +++ b/web/src/lib/stores/trail_store.ts @@ -593,7 +593,7 @@ function buildFilterText(user: AuthRecord, filter: TrailFilter, includeGeo: bool } if (filter.category.length > 0) { - filterText += ` AND category IN [${filter.category.join(",")}]`; + filterText += ` AND category IN ['${filter.category.join(",")}']`; } if (filter.tags.length > 0) { diff --git a/web/src/routes/profile/[handle]/trails/+page.svelte b/web/src/routes/profile/[handle]/trails/+page.svelte index 039fc2ff..91305e04 100644 --- a/web/src/routes/profile/[handle]/trails/+page.svelte +++ b/web/src/routes/profile/[handle]/trails/+page.svelte @@ -1,10 +1,9 @@