Skip to content

Commit

Permalink
fix: Fixed group utils file
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 20, 2023
1 parent 617bbf6 commit d522ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/group/groupSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ const updateMemberItem = (
'members.data.membershipsInfo.membershipsSample',
state.members.data?.membershipsInfo?.membershipsSample
?.map((membership: Membership) =>
_.includes(membership.user.email, userEmails)
_.includes(membership.user?.email, userEmails)
? valueGenerator(membership)
: membership
)
Expand Down
3 changes: 1 addition & 2 deletions src/group/groupUtils.ts → src/group/groupUtils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { extractMembershipsInfo } from 'terraso-client-shared/collaboration/membershipsUtils';

import { extractDataEntries } from 'sharedData/sharedDataUtils';
import { GroupNode } from 'terraso-client-shared/graphqlSchema/graphql';

export const extractGroup = (group: GroupNode) => ({
export const extractGroup = group => ({
...group,
membershipsInfo: extractMembershipsInfo(group.membershipList),
dataEntries: extractDataEntries(group),
Expand Down

0 comments on commit d522ef6

Please sign in to comment.