From c4c4695862ac1b33149e392c7afb168548b95287 Mon Sep 17 00:00:00 2001 From: Pooja Kulkarni Date: Mon, 16 Sep 2024 10:43:15 -0400 Subject: [PATCH] fix: maintain default filter with pagination --- src/studio-home/data/slice.js | 2 +- src/studio-home/data/slice.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/studio-home/data/slice.js b/src/studio-home/data/slice.js index 89ee211c0f..8bb5aaae15 100644 --- a/src/studio-home/data/slice.js +++ b/src/studio-home/data/slice.js @@ -22,7 +22,7 @@ const slice = createSlice({ search: undefined, order: 'display_name', archivedOnly: undefined, - activeOnly: undefined, + activeOnly: true, isFiltered: false, cleanFilters: false, }, diff --git a/src/studio-home/data/slice.test.js b/src/studio-home/data/slice.test.js index 7340e56793..a788dadcaf 100644 --- a/src/studio-home/data/slice.test.js +++ b/src/studio-home/data/slice.test.js @@ -20,7 +20,7 @@ describe('updateStudioHomeCoursesCustomParams action', () => { search: undefined, order: 'display_name', archivedOnly: undefined, - activeOnly: undefined, + activeOnly: true, isFiltered: false, cleanFilters: false, },