Skip to content

Commit 6ea7721

Browse files
authored
fix(#391):Enable Consistent Edit For All Cohorts (#607)
-As an admin, I have ability to edit all cohorts that I am permitted to manage
1 parent d72b882 commit 6ea7721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/containers/admin-dashBoard/CohortTraineeModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function CohortTraineeModal({
4646
if (traineeData && traineeData.length > 0) {
4747
traineeData?.map((data: any, index: number): any => {
4848
datum[index] = {};
49-
datum[index].name = data.profile.name;
49+
datum[index].name = data.profile?.name;
5050
datum[index].email = data.email;
5151
datum[index].rating = '2';
5252
datum[index].team = data.team.name;

src/containers/admin-dashBoard/UpdateCohortModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const UpdateCohort = gql`
1212
mutation UpdateCohort(
1313
$updateCohortId: ID!
1414
$orgToken: String
15-
$coordinatorEmail: String!
15+
$coordinatorEmail: String
1616
$programName: String!
1717
$name: String
1818
$phaseName: String

0 commit comments

Comments
 (0)