show groups if they exist for user (#2384)

This commit is contained in:
pablodanswer 2024-09-10 08:14:30 -07:00 committed by GitHub
parent f52d1142eb
commit 99b28643f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,8 @@ export const IsPublicGroupSelector = <T extends IsPublicGroupSelectorFormType>({
)}
{(!formikProps.values.is_public || isCurator) &&
formikProps.values.groups.length > 0 && (
userGroups &&
userGroups?.length > 0 && (
<>
<div className="flex mt-4 gap-x-2 items-center">
<div className="block font-medium text-base">