GroupSearch: fix type of value

This commit is contained in:
Liam Fitzgerald 2021-02-01 18:18:50 +10:00
parent 988515aefa
commit 3f8f3bd3a4
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -91,9 +91,9 @@ export function GroupSearch(props: InviteSearchProps) {
props.associations.groups?.[value]?.metadata || {}; props.associations.groups?.[value]?.metadata || {};
const onSelect = useCallback( const onSelect = useCallback(
(s: string) => { (a: Association) => {
setTouched(true); setTouched(true);
setSelected(v => _.uniq([...v, s])); setSelected(v => _.uniq([...v, a.group]));
}, },
[setTouched, setSelected] [setTouched, setSelected]
); );