refactor!: turn on homepage course API V2 consumption by default (#1307)

* refactor!: turn on homepage course API V2 consumption by default

Turn on getting courses from the HomePageCourses API
which allows pagination, filtering and ordering. See https://github.com/openedx/edx-platform/pull/34173
for more details on the API implementation.

* fix: home page initial a-z course sort

---------

Co-authored-by: Diana Olarte <diana.olarte@edunext.co>
This commit is contained in:
Maria Grimaldi
2024-10-16 18:29:20 +02:00
committed by GitHub
parent 1bdea093b0
commit 8a4d1f4810
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ const useStudioHome = (isPaginated = false) => {
useEffect(() => {
if (isPaginated) {
const firstPage = 1;
dispatch(fetchStudioHomeData(location.search ?? '', false, { page: firstPage }, true));
dispatch(fetchStudioHomeData(location.search ?? '', false, { page: firstPage, order: 'display_name' }, true));
}
}, []);