Skip to content

Commit

Permalink
fix(GoalTableList): calculate partnership projects
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats authored and asabotovich committed Aug 13, 2024
1 parent 3a65b40 commit 337644c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DashboardPage/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ export const DashboardPage = ({ user, ssrTime, defaultPresetFallback }: External
owner: safeUserData(goal.owner),
participants: goal.participants?.map(safeUserData),
achievedCriteriaWeight: goal._achivedCriteriaWeight,
partnershipProjects: goal.partnershipProjects,
isInPartnerProject: project.id !== goal.projectId,
}))}
/>
</TreeViewElement>
Expand Down
2 changes: 2 additions & 0 deletions src/components/ProjectListItemConnected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export const ProjectListItemConnected: FC<ProjectListItemConnectedProps> = ({
owner: safeUserData(goal.owner),
participants: goal.participants?.map(safeUserData),
achievedCriteriaWeight: goal._achivedCriteriaWeight,
partnershipProjects: goal.partnershipProjects,
isInPartnerProject: project.id !== goal.projectId,
}))}
onTagClick={setTagsFilterOutside}
onGoalClick={onProjectClickHandler}
Expand Down

0 comments on commit 337644c

Please sign in to comment.