[FIX] Hide system messages (#2067)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-04-30 14:54:42 -03:00 committed by GitHub
parent 4e948f897c
commit a34929fb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,14 +43,14 @@ export const MultiSelect = React.memo(({
inputStyle,
theme
}) => {
const [selected, select] = useState(values || []);
const [selected, select] = useState(Array.isArray(values) ? values : []);
const [open, setOpen] = useState(false);
const [search, onSearchChange] = useState('');
const [currentValue, setCurrentValue] = useState('');
const [showContent, setShowContent] = useState(false);
useEffect(() => {
if (values) {
if (Array.isArray(values)) {
select(values);
}
}, [values]);