diff --git a/frontend/app/components/Dashboard/components/DashboardList/DashboardSearch.tsx b/frontend/app/components/Dashboard/components/DashboardList/DashboardSearch.tsx
index a3b13f1d3..d60a6886c 100644
--- a/frontend/app/components/Dashboard/components/DashboardList/DashboardSearch.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardList/DashboardSearch.tsx
@@ -4,33 +4,37 @@ import { useStore } from 'App/mstore';
import { Icon } from 'UI';
import { debounce } from 'App/utils';
-let debounceUpdate: any = () => {}
+let debounceUpdate: any = () => {};
function DashboardSearch() {
- const { dashboardStore } = useStore();
- const [query, setQuery] = useState(dashboardStore.dashboardsSearch);
- useEffect(() => {
- debounceUpdate = debounce((key: string, value: any) => dashboardStore.updateKey(key, value), 500);
- }, [])
-
- // @ts-ignore
- const write = ({ target: { value } }) => {
- setQuery(value);
- debounceUpdate('dashboardsSearch', value);
- }
-
- return (
-
-
-
-
+ const { dashboardStore } = useStore();
+ const [query, setQuery] = useState(dashboardStore.dashboardsSearch);
+ useEffect(() => {
+ debounceUpdate = debounce(
+ (key: string, value: any) =>
+ dashboardStore.updateKey('filter', { ...dashboardStore.filter, query: value }),
+ 500
);
+ }, []);
+
+ // @ts-ignore
+ const write = ({ target: { value } }) => {
+ setQuery(value);
+ debounceUpdate('dashboardsSearch', value);
+ };
+
+ return (
+
+
+
+
+ );
}
export default observer(DashboardSearch);
diff --git a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
index f77d3ae69..560c27c61 100644
--- a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
@@ -19,30 +19,49 @@ function Header({ history, siteId }: { history: any; siteId: string }) {
};
return (
-
-
-
-
-
-