mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +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 || {};
|
||||
|
||||
const onSelect = useCallback(
|
||||
(s: string) => {
|
||||
(a: Association) => {
|
||||
setTouched(true);
|
||||
setSelected(v => _.uniq([...v, s]));
|
||||
setSelected(v => _.uniq([...v, a.group]));
|
||||
},
|
||||
[setTouched, setSelected]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user