From 3f8f3bd3a4a57d94f9756cac66abd1e10c71b487 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Mon, 1 Feb 2021 18:18:50 +1000 Subject: [PATCH] GroupSearch: fix type of value --- pkg/interface/src/views/components/GroupSearch.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/components/GroupSearch.tsx b/pkg/interface/src/views/components/GroupSearch.tsx index 012d382622..4fc8339835 100644 --- a/pkg/interface/src/views/components/GroupSearch.tsx +++ b/pkg/interface/src/views/components/GroupSearch.tsx @@ -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] );