From 6845422613303a09aa7193f77f9d0fe09ab0392a Mon Sep 17 00:00:00 2001 From: arpitnath Date: Mon, 1 Nov 2021 14:52:13 +0530 Subject: [PATCH] reset the default value to empty string --- frontend/src/Editor/Components/DropDown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/DropDown.jsx b/frontend/src/Editor/Components/DropDown.jsx index 0e28b9755f..18d0b7a1fd 100644 --- a/frontend/src/Editor/Components/DropDown.jsx +++ b/frontend/src/Editor/Components/DropDown.jsx @@ -63,7 +63,7 @@ export const DropDown = function DropDown({ const value = currentValueProperty ? currentValueProperty.value : ''; const [currentValue, setCurrentValue] = useState(''); - const [optionValues, setOptionValue] = useState(() => selectOptions); + const [optionValues, setOptionValue] = useState(() => selectOptions ?? ''); useEffect(() => { const nextOptionValues = JSON.stringify(parsedValues);