prevent null values setState
This commit is contained in:
@ -75,7 +75,11 @@ const Dictionaries = () => {
|
||||
<Select
|
||||
data={dictionaryOptions}
|
||||
value={selectedDictionary}
|
||||
onChange={setSelectedDictionary}
|
||||
onChange={(value) => {
|
||||
if (value) {
|
||||
setSelectedDictionary(value)
|
||||
}
|
||||
}}
|
||||
allowDeselect={false}
|
||||
searchable
|
||||
nothingFoundMessage="Не найдено..."
|
||||
|
||||
Reference in New Issue
Block a user