[FIX] Hide system messages (#2067)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
4e948f897c
commit
a34929fb9b
|
@ -43,14 +43,14 @@ export const MultiSelect = React.memo(({
|
||||||
inputStyle,
|
inputStyle,
|
||||||
theme
|
theme
|
||||||
}) => {
|
}) => {
|
||||||
const [selected, select] = useState(values || []);
|
const [selected, select] = useState(Array.isArray(values) ? values : []);
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const [search, onSearchChange] = useState('');
|
const [search, onSearchChange] = useState('');
|
||||||
const [currentValue, setCurrentValue] = useState('');
|
const [currentValue, setCurrentValue] = useState('');
|
||||||
const [showContent, setShowContent] = useState(false);
|
const [showContent, setShowContent] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (values) {
|
if (Array.isArray(values)) {
|
||||||
select(values);
|
select(values);
|
||||||
}
|
}
|
||||||
}, [values]);
|
}, [values]);
|
||||||
|
|
Loading…
Reference in New Issue