From 366c9d70342e31c98d692d5e92b8c13103293aed Mon Sep 17 00:00:00 2001 From: Sergio Valero Date: Tue, 18 Jun 2024 16:24:24 -0400 Subject: [PATCH] fix: Add course_key in url --- src/features/Courses/CoursesDetailPage/index.jsx | 2 +- src/features/Courses/CoursesTable/columns.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/Courses/CoursesDetailPage/index.jsx b/src/features/Courses/CoursesDetailPage/index.jsx index f3379b98..e389f374 100644 --- a/src/features/Courses/CoursesDetailPage/index.jsx +++ b/src/features/Courses/CoursesDetailPage/index.jsx @@ -32,7 +32,7 @@ const CoursesDetailPage = () => { }; const courseInfo = useSelector((state) => state.courses.table.data) - .find((course) => course?.masterCourseName === courseId) || defaultCourseInfo; + .find((course) => course?.masterCourseId === courseId) || defaultCourseInfo; const institution = useSelector((state) => state.main.selectedInstitution); const classes = useSelector((state) => state.classes.table); const totalStudents = courseInfo.numberOfStudents + courseInfo.numberOfPendingStudents; diff --git a/src/features/Courses/CoursesTable/columns.jsx b/src/features/Courses/CoursesTable/columns.jsx index 5841271b..20f6ae70 100644 --- a/src/features/Courses/CoursesTable/columns.jsx +++ b/src/features/Courses/CoursesTable/columns.jsx @@ -14,7 +14,7 @@ const columns = [ { Header: 'Courses', accessor: 'masterCourseName', - Cell: ({ row }) => ({row.values.masterCourseName}), + Cell: ({ row }) => ({row.values.masterCourseName}), }, { Header: 'Classes',