diff --git a/frontend/src/components/EntriesNavigation.js b/frontend/src/components/EntriesNavigation.js
index bbb3a73a..1b980d53 100644
--- a/frontend/src/components/EntriesNavigation.js
+++ b/frontend/src/components/EntriesNavigation.js
@@ -179,8 +179,18 @@ const EntriesNavigation = () => {
const handleFilterStateCallback = (props) => {
console.log("handleFilterStateCallback", props);
- const newFilterState = [...filterState];
- newFilterState.push({ ...props });
+ const oldFilterState = [...filterState];
+ oldFilterState.push({ ...props });
+
+ const newFilterState = oldFilterState;
+ ui.setSearchTerm(
+ newFilterState
+ .map((filter) => {
+ return filter.direction + ":" + filter.value;
+ })
+ .join("+")
+ );
+
setFilterState(newFilterState);
};
if (subscriptionsCache.isLoading) return "";
@@ -268,33 +278,15 @@ const EntriesNavigation = () => {
)}
{filter.direction === DIRECTIONS.DESTINATION && (
-
+
+ setFilterProps(idx, {
+ value: e.target.value,
+ })
+ }
+ placeholder="Type in address"
+ />
)}
>
)}