From 50a57d13fd3c5b5e058937ce696023b02c4f090c Mon Sep 17 00:00:00 2001 From: Kiran Ashok Date: Thu, 3 Mar 2022 20:36:49 +0530 Subject: [PATCH] bugfix (#2411) --- frontend/src/Editor/Components/Multiselect.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/Components/Multiselect.jsx b/frontend/src/Editor/Components/Multiselect.jsx index e439b5c16e..74a466d9ad 100644 --- a/frontend/src/Editor/Components/Multiselect.jsx +++ b/frontend/src/Editor/Components/Multiselect.jsx @@ -51,7 +51,7 @@ export const Multiselect = function Multiselect({ setCurrentValue(properties.value); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [value]); + }, []); useEffect(() => { selectRef.current.querySelector('.select-search__input').style.borderRadius = `${Number.parseFloat( @@ -61,7 +61,7 @@ export const Multiselect = function Multiselect({ }, [borderRadius, selectRef.current]); const handleChange = (value) => { - setCurrentValue(value); + // setCurrentValue(value); setExposedVariable('values', value).then(() => fireEvent('onSelect')); };