prevent null values setState

This commit is contained in:
2025-09-02 12:18:22 +09:00
parent 398425d022
commit e0c70ccbe9

View File

@ -75,7 +75,11 @@ const Dictionaries = () => {
<Select
data={dictionaryOptions}
value={selectedDictionary}
onChange={setSelectedDictionary}
onChange={(value) => {
if (value) {
setSelectedDictionary(value)
}
}}
allowDeselect={false}
searchable
nothingFoundMessage="Не найдено..."