Skip to content

Commit

Permalink
2024-09-04 - bugfix-2579 - add check on null supervisors
Browse files Browse the repository at this point in the history
  • Loading branch information
Luch76 committed Sep 4, 2024
1 parent d25170a commit d3bd559
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web-ui/src/components/reviews/TeamReviews.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -659,16 +659,12 @@ const TeamReviews = ({ onBack, periodId }) => {
.filter(member => member.supervisorid === null) // Filter by null supervisorid
.map(member => member.name) // Map to the name property
)].join(', ');
console.log("TeamReviews, requestApproval, uniqueNamesWithNoSupervisor.trim().length", uniqueNamesWithNoSupervisor.trim().length);
console.log("TeamReviews, requestApproval, uniqueNamesWithNoSupervisor", uniqueNamesWithNoSupervisor);

if (uniqueNamesWithNoSupervisor.trim().length > 0) {
setConfirmRevieweesWithNoSupervisorQuestionText(uniqueNamesWithNoSupervisor);
setConfirmRevieweesWithNoSupervisorOpen(true);
} else {
return requestApprovalPost();
}

};

const compareStrings = (s1, s2) => (s1 || '').localeCompare(s2 || '');
Expand Down

0 comments on commit d3bd559

Please sign in to comment.