Skip to content

Commit

Permalink
show groups if they exist for user (onyx-dot-app#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx authored and rajiv chodisetti committed Oct 2, 2024
1 parent 991df60 commit d58c0f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/IsPublicGroupSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit d58c0f0

Please sign in to comment.