From d58c0f0c28754bebf7e03a8c0a63daa1006370ab Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Tue, 10 Sep 2024 08:14:30 -0700 Subject: [PATCH] show groups if they exist for user (#2384) --- web/src/components/IsPublicGroupSelector.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/IsPublicGroupSelector.tsx b/web/src/components/IsPublicGroupSelector.tsx index c478d29b177..f48c112b853 100644 --- a/web/src/components/IsPublicGroupSelector.tsx +++ b/web/src/components/IsPublicGroupSelector.tsx @@ -96,7 +96,8 @@ export const IsPublicGroupSelector = ({ )} {(!formikProps.values.is_public || isCurator) && - formikProps.values.groups.length > 0 && ( + userGroups && + userGroups?.length > 0 && ( <>