diff --git a/src/studio-home/card-item/CardItem.test.jsx b/src/studio-home/card-item/CardItem.test.jsx
index 73dc73815..906861581 100644
--- a/src/studio-home/card-item/CardItem.test.jsx
+++ b/src/studio-home/card-item/CardItem.test.jsx
@@ -57,7 +57,7 @@ describe('', () => {
it('should render correct links for non-library course pagination', () => {
const props = studioHomeMock.archivedCourses[0];
- const { getByText, getByTestId } = render();
+ const { getByText, getByTestId } = render();
const courseTitleLink = getByText(props.displayName);
expect(courseTitleLink).toHaveAttribute('href', `${getConfig().STUDIO_BASE_URL}${props.url}`);
const dropDownMenu = getByTestId('toggle-dropdown');
diff --git a/src/studio-home/card-item/index.jsx b/src/studio-home/card-item/index.jsx
index 5588ade31..f1cb8d2bf 100644
--- a/src/studio-home/card-item/index.jsx
+++ b/src/studio-home/card-item/index.jsx
@@ -26,7 +26,7 @@ const CardItem = ({
run,
isLibraries,
courseKey,
- isPaginationEnabled,
+ isPaginated,
url,
cmsLink,
}) => {
@@ -59,7 +59,7 @@ const CardItem = ({
)}
subtitle={subtitle}
actions={showActions && (
- isPaginationEnabled ? (
+ isPaginated ? (
state.studioHome.studioHomeData;
export const getLoadingStatuses = (state) => state.studioHome.loadingStatuses;
export const getSavingStatuses = (state) => state.studioHome.savingStatuses;
-export const getStudioHomeCoursesParams = (state) => state.studioHome.studioHomeCoursesCustomParams;
+export const getStudioHomeCoursesParams = (state) => state.studioHome.studioHomeCoursesRequestParams;
diff --git a/src/studio-home/data/slice.js b/src/studio-home/data/slice.js
index 6d7944756..b7e9f136c 100644
--- a/src/studio-home/data/slice.js
+++ b/src/studio-home/data/slice.js
@@ -17,7 +17,7 @@ const slice = createSlice({
deleteNotificationSavingStatus: '',
},
studioHomeData: {},
- studioHomeCoursesCustomParams: {
+ studioHomeCoursesRequestParams: {
currentPage: 1,
},
},
@@ -52,7 +52,7 @@ const slice = createSlice({
},
updateStudioHomeCoursesCustomParams: (state, { payload }) => {
const { currentPage } = payload;
- state.studioHomeCoursesCustomParams.currentPage = currentPage;
+ state.studioHomeCoursesRequestParams.currentPage = currentPage;
},
},
});
diff --git a/src/studio-home/data/slice.test.js b/src/studio-home/data/slice.test.js
index dc7e1df55..3e7ccda6a 100644
--- a/src/studio-home/data/slice.test.js
+++ b/src/studio-home/data/slice.test.js
@@ -15,7 +15,7 @@ describe('updateStudioHomeCoursesCustomParams action', () => {
deleteNotificationSavingStatus: '',
},
studioHomeData: {},
- studioHomeCoursesCustomParams: {
+ studioHomeCoursesRequestParams: {
currentPage: 1,
},
};
@@ -25,10 +25,10 @@ describe('updateStudioHomeCoursesCustomParams action', () => {
expect(result).toEqual(initialState);
});
- it('should update the currentPage in studioHomeCoursesCustomParams', () => {
+ it('should update the currentPage in studioHomeCoursesRequestParams', () => {
const newState = {
...initialState,
- studioHomeCoursesCustomParams: {
+ studioHomeCoursesRequestParams: {
currentPage: 2,
},
};
diff --git a/src/studio-home/data/thunks.js b/src/studio-home/data/thunks.js
index 76ae08fdc..495a726aa 100644
--- a/src/studio-home/data/thunks.js
+++ b/src/studio-home/data/thunks.js
@@ -16,7 +16,7 @@ import {
fetchCourseDataSuccessV2,
} from './slice';
-function fetchStudioHomeData(search, hasHomeData, customParams = {}, isPaginationEnabled = false) {
+function fetchStudioHomeData(search, hasHomeData, requestParams = {}, isPaginationEnabled = false) {
return async (dispatch) => {
dispatch(updateLoadingStatuses({ studioHomeLoadingStatus: RequestStatus.IN_PROGRESS }));
dispatch(updateLoadingStatuses({ courseLoadingStatus: RequestStatus.IN_PROGRESS }));
@@ -33,7 +33,7 @@ function fetchStudioHomeData(search, hasHomeData, customParams = {}, isPaginatio
}
try {
if (isPaginationEnabled) {
- const coursesData = await getStudioHomeCoursesV2(search || '', customParams);
+ const coursesData = await getStudioHomeCoursesV2(search || '', requestParams);
dispatch(fetchCourseDataSuccessV2(coursesData));
} else {
const coursesData = await getStudioHomeCourses(search || '');
diff --git a/src/studio-home/factories/mockApiResponses.jsx b/src/studio-home/factories/mockApiResponses.jsx
index e92e00f66..b292c28a5 100644
--- a/src/studio-home/factories/mockApiResponses.jsx
+++ b/src/studio-home/factories/mockApiResponses.jsx
@@ -15,7 +15,7 @@ export const initialState = {
deleteNotificationSavingStatus: '',
},
studioHomeData: {},
- studioHomeCoursesCustomParams: {
+ studioHomeCoursesRequestParams: {
currentPage: 1,
},
},