Skip to content

Commit

Permalink
fix(#391):Enable Consistent Edit For All Cohorts
Browse files Browse the repository at this point in the history
-As an admin, I have ability to edit all cohorts that I am permitted to manage
  • Loading branch information
niyobertin committed Oct 28, 2024
1 parent 4321d94 commit e3810c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/admin-dashBoard/CohortTraineeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CohortTraineeModal({
if (traineeData && traineeData.length > 0) {
traineeData?.map((data: any, index: number): any => {
datum[index] = {};
datum[index].name = data.profile.name;
datum[index].name = data.profile?.name;
datum[index].email = data.email;
datum[index].rating = '2';
datum[index].team = data.team.name;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/admin-dashBoard/UpdateCohortModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const UpdateCohort = gql`
mutation UpdateCohort(
$updateCohortId: ID!
$orgToken: String
$coordinatorEmail: String!
$coordinatorEmail: String
$programName: String!
$name: String
$phaseName: String
Expand Down

0 comments on commit e3810c1

Please sign in to comment.