From e4d42293148aec449f67f36c85be27804acca948 Mon Sep 17 00:00:00 2001 From: Janson Bunce Date: Thu, 5 Sep 2024 14:45:10 -0700 Subject: [PATCH] fix save search button --- frontend/src/pages/Search/Inventory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Search/Inventory.tsx b/frontend/src/pages/Search/Inventory.tsx index f50412c0..53eaf28b 100644 --- a/frontend/src/pages/Search/Inventory.tsx +++ b/frontend/src/pages/Search/Inventory.tsx @@ -73,7 +73,7 @@ export const DashboardUI: React.FC = ( // Could be used for validation purposes in new dialogue // const { savedSearches } = useSavedSearchContext(); - const advanceFiltersReq = filters.length > 1; //Prevents a user from saving a search without advanced filters + const advanceFiltersReq = filters.length > 1 || searchTerm !== ''; //Prevents a user from saving a search without advanced filters const search: | (SavedSearch & {