mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 10:32:34 +03:00
GroupSearch: fix type of value
This commit is contained in:
parent
988515aefa
commit
3f8f3bd3a4
@ -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]
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user