diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx index 3e40b36c8..6c06e67e7 100644 --- a/web/src/components/input/InputWithTags.tsx +++ b/web/src/components/input/InputWithTags.tsx @@ -397,6 +397,11 @@ export default function InputWithTags({ setIsSimilaritySearch(false); }, [setFilters, resetSuggestions, setSearch, setInputFocused]); + const handleClearSimilarity = useCallback(() => { + removeFilter("event_id", filters.event_id!); + removeFilter("search_type", "similarity"); + }, [removeFilter, filters]); + const handleInputBlur = useCallback( (e: React.FocusEvent) => { if ( @@ -638,7 +643,7 @@ export default function InputWithTags({ Similarity Search