From dceae91227ee4ec8d155b798f97484f7ffa6618e Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:56:04 -0500 Subject: [PATCH] don't turn button to selected style for similarity searches --- web/src/components/overlay/dialog/SearchFilterDialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/overlay/dialog/SearchFilterDialog.tsx b/web/src/components/overlay/dialog/SearchFilterDialog.tsx index 9a63432fc..ad9fe1c2b 100644 --- a/web/src/components/overlay/dialog/SearchFilterDialog.tsx +++ b/web/src/components/overlay/dialog/SearchFilterDialog.tsx @@ -66,7 +66,8 @@ export default function SearchFilterDialog({ (currentFilter.max_score ?? 1) < 1 || (currentFilter.zones?.length ?? 0) > 0 || (currentFilter.sub_labels?.length ?? 0) > 0 || - (currentFilter.search_type?.length ?? 2) !== 2), + (!currentFilter.search_type?.includes("similarity") && + (currentFilter.search_type?.length ?? 2) !== 2)), [currentFilter], );