From 0d282a962c4ecfe929e6db9b1572e3bf46040d19 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 19 Jul 2022 08:35:43 -0700 Subject: [PATCH] Don't `setQuery` on group selector component during initial render (#660) --- web/components/groups/group-selector.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/groups/group-selector.tsx b/web/components/groups/group-selector.tsx index 2417403a..c7b4cb39 100644 --- a/web/components/groups/group-selector.tsx +++ b/web/components/groups/group-selector.tsx @@ -53,9 +53,8 @@ export function GroupSelector(props: { nullable={true} className={'text-sm'} > - {({ open }) => ( + {() => ( <> - {!open && setQuery('')} Add to Group