From fb764a3f229fdeec32a8f4c4f7542e637b06ce32 Mon Sep 17 00:00:00 2001 From: eireland Date: Fri, 26 Jan 2024 15:51:58 -0800 Subject: [PATCH] Fixes the double input value when switching from between operator to any single value operator --- src/components/attribute-filter.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/attribute-filter.tsx b/src/components/attribute-filter.tsx index f63002c..adaea95 100644 --- a/src/components/attribute-filter.tsx +++ b/src/components/attribute-filter.tsx @@ -289,9 +289,13 @@ const FilterModal = ({attr, position, targetFilterBottom, setShowFilterModal, se } else if (operator === "aboveMean" || operator === "belowMean") { return null; } else if (operator === "top" || operator === "bottom") { - return ; + return + ; } else { - return ; + return + ; } };