Filter map results when picking search suggestions
This commit is contained in:
parent
43fefaf235
commit
81c64999c4
|
|
@ -365,8 +365,14 @@ export default function MapView({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
const q = (item.title || item.name || "").toString().trim();
|
||||||
skipAutoZoomRef.current = false;
|
skipAutoZoomRef.current = false;
|
||||||
setSearchQuery("");
|
setSearchQuery(q);
|
||||||
|
if (q) {
|
||||||
|
setMainFilter("All");
|
||||||
|
setSubFilter("All");
|
||||||
|
setTimeFilter("PAST");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue