From 5dc5f085b9a75e52e4324f9a9e454848b616d24f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 7 Feb 2025 14:05:09 +0100 Subject: [PATCH] fix(ui): clear filters is disblaed for events --- .../app/components/shared/SearchActions/SearchActions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/SearchActions/SearchActions.tsx b/frontend/app/components/shared/SearchActions/SearchActions.tsx index 45fded8ff..ec6037456 100644 --- a/frontend/app/components/shared/SearchActions/SearchActions.tsx +++ b/frontend/app/components/shared/SearchActions/SearchActions.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from "react"; +import React, { useMemo } from 'react'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; import { observer } from 'mobx-react-lite'; import { useStore } from 'App/mstore'; @@ -18,7 +18,7 @@ function SearchActions() { appliedFilter.filters.filter((i: any) => !i.isEvent).length > 0; const savedSearch = searchStore.savedSearch; const hasSavedSearch = savedSearch && savedSearch.exists(); - const hasSearch = hasFilters || hasSavedSearch; + const hasSearch = hasEvents || hasFilters || hasSavedSearch; const title = useMemo(() => { if (activeTab && activeTab.type === 'bookmarks') {