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