updated model selector to not call function when model is empty
This commit is contained in:
parent
535841e882
commit
8360388101
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ export function ModelSelector({
|
|||
const [searchValue, setSearchValue] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
if (value && (!options.find((option) => option.value === value) && !custom)) {
|
||||
if (value && value !== "" && (!options.find((option) => option.value === value) && !custom)) {
|
||||
onValueChange("");
|
||||
}
|
||||
}, [options, value, custom, onValueChange]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue