From 67527333b854405db630a78aa73dce90774ffeed Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Thu, 13 Jun 2024 17:39:27 +0300 Subject: [PATCH] fix: fixed tests --- src/course-checklist/CourseChecklist.jsx | 6 +++--- src/course-outline/data/thunk.js | 1 - src/course-outline/page-alerts/PageAlerts.jsx | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/course-checklist/CourseChecklist.jsx b/src/course-checklist/CourseChecklist.jsx index b71817f168..cdce73695c 100644 --- a/src/course-checklist/CourseChecklist.jsx +++ b/src/course-checklist/CourseChecklist.jsx @@ -37,10 +37,10 @@ const CourseChecklist = ({ bestPracticeData, } = useSelector(state => state.courseChecklist); - const { bestPracticeChecklistStatus, launchChecklistStatus } = loadingStatus; + const { bestPracticeChecklistLoadingStatus, launchChecklistLoadingStatus, launchChecklistStatus } = loadingStatus; - const isCourseLaunchChecklistLoading = bestPracticeChecklistStatus === RequestStatus.IN_PROGRESS; - const isCourseBestPracticeChecklistLoading = launchChecklistStatus === RequestStatus.IN_PROGRESS; + const isCourseLaunchChecklistLoading = bestPracticeChecklistLoadingStatus === RequestStatus.IN_PROGRESS; + const isCourseBestPracticeChecklistLoading = launchChecklistLoadingStatus === RequestStatus.IN_PROGRESS; const isLoadingDenied = launchChecklistStatus === RequestStatus.DENIED; if (isLoadingDenied) { diff --git a/src/course-outline/data/thunk.js b/src/course-outline/data/thunk.js index 467629f8eb..47fd3eb732 100644 --- a/src/course-outline/data/thunk.js +++ b/src/course-outline/data/thunk.js @@ -99,7 +99,6 @@ export function fetchCourseOutlineIndexQuery(courseId) { if (error.response && error.response.status === 403) { dispatch(updateOutlineIndexLoadingStatus({ status: RequestStatus.DENIED, - errors: getErrorDetails(error, false), })); } else { dispatch(updateOutlineIndexLoadingStatus({ diff --git a/src/course-outline/page-alerts/PageAlerts.jsx b/src/course-outline/page-alerts/PageAlerts.jsx index 8fb981212b..b5f2cda2d7 100644 --- a/src/course-outline/page-alerts/PageAlerts.jsx +++ b/src/course-outline/page-alerts/PageAlerts.jsx @@ -341,6 +341,7 @@ const PageAlerts = ({ case API_ERROR_TYPES.serverError: return { key: k, + desc: v.status === 403 ? '' : v.data, title: intl.formatMessage(messages.serverErrorAlert, { status: v.status, }),