mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
reset the default value to empty string
This commit is contained in:
parent
c0bcaa1d7f
commit
6845422613
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue