Skip to content

Commit

Permalink
Merge pull request #1127 from OneCommunityGlobal/crystal-followup-fix…
Browse files Browse the repository at this point in the history
…-so-tasks-of-members-are-hidden-with-the-teams-toggle

Crystal fix tasks of members are hidden when teams toggle is off
  • Loading branch information
one-community authored Oct 14, 2024
2 parents fff4645 + b4e3466 commit 97a2e55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/helpers/taskHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,15 @@ const taskHelper = function () {
);

sharedTeamsResult.forEach((_myTeam) => {
let hasTeamVisibility = false;
_myTeam.members.forEach((teamMember) => {
if (!teamMember.userId.equals(userid)) teamMemberIds.push(teamMember.userId);
if (teamMember.userId.equals(userid) && teamMember.visible) hasTeamVisibility = true;
});
if (hasTeamVisibility) {
_myTeam.members.forEach((teamMember) => {
if (!teamMember.userId.equals(userid)) teamMemberIds.push(teamMember.userId);
});
}
});

teamMembers = await userProfile
Expand Down

0 comments on commit 97a2e55

Please sign in to comment.