Skip to content
Snippets Groups Projects
Unverified Commit a34929fb authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by GitHub
Browse files

[FIX] Hide system messages (#2067)

parent 4e948f89
No related branches found
No related tags found
Loading
...@@ -43,14 +43,14 @@ export const MultiSelect = React.memo(({ ...@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment