Skip to content

Commit

Permalink
fix: added missing groupUtils file
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 20, 2023
1 parent 3259746 commit 617bbf6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/group/groupUtils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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) => ({
...group,
membershipsInfo: extractMembershipsInfo(group.membershipList),
dataEntries: extractDataEntries(group),
});

0 comments on commit 617bbf6

Please sign in to comment.