ui: filterout empty options
This commit is contained in:
parent
e13804009a
commit
6c25dd7cad
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ function FilterAutoCompleteLocal(props: { params: any, values: string[], onClose
|
|||
values,
|
||||
} = props;
|
||||
const [options, setOptions] = useState<{ value: string; label: string }[]>(
|
||||
values.map((value) => ({ value, label: value }))
|
||||
values.filter(val => val.length).map((value) => ({ value, label: value }))
|
||||
);
|
||||
|
||||
const onApplyValues = (values: string[]) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue