Skip to content

Commit

Permalink
fix save search button
Browse files Browse the repository at this point in the history
  • Loading branch information
Janson Bunce committed Sep 5, 2024
1 parent e9a9098 commit e4d4229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/Search/Inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const DashboardUI: React.FC<ContextType & { location: any }> = (
// 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 & {
Expand Down

0 comments on commit e4d4229

Please sign in to comment.