From 81c64999c4102df5e1ebfd3f55428f9873ae9663 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 26 Dec 2025 00:28:12 -0500 Subject: [PATCH] Filter map results when picking search suggestions --- src/components/Map/MapView.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Map/MapView.jsx b/src/components/Map/MapView.jsx index ae8a193..c6ea70a 100644 --- a/src/components/Map/MapView.jsx +++ b/src/components/Map/MapView.jsx @@ -365,8 +365,14 @@ export default function MapView({ }); } } else { + const q = (item.title || item.name || "").toString().trim(); skipAutoZoomRef.current = false; - setSearchQuery(""); + setSearchQuery(q); + if (q) { + setMainFilter("All"); + setSubFilter("All"); + setTimeFilter("PAST"); + } } };