From 92e6198bad60df14b5ecbf9c37e16942c65f0c48 Mon Sep 17 00:00:00 2001 From: Thang PHAM Date: Fri, 23 Jan 2026 16:49:05 +0100 Subject: [PATCH] Decouple log pagination state from computation type Signed-off-by: Thang PHAM --- src/redux/reducer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/redux/reducer.ts b/src/redux/reducer.ts index 919396bf83..af31ffc9eb 100644 --- a/src/redux/reducer.ts +++ b/src/redux/reducer.ts @@ -1843,9 +1843,7 @@ export const reducer = createReducer(initialState, (builder) => { builder.addCase(RESET_LOGS_PAGINATION, (state, _action: ResetLogsPaginationAction) => { // Reset all logs tabs to page 0 but keep their rowsPerPage - Object.keys(COMPUTING_AND_NETWORK_MODIFICATION_TYPE).forEach((key) => { - const reportType = - COMPUTING_AND_NETWORK_MODIFICATION_TYPE[key as keyof typeof COMPUTING_AND_NETWORK_MODIFICATION_TYPE]; + Object.keys(state[LOGS_PAGINATION_STORE_FIELD]).forEach((reportType) => { const currentPagination = state[LOGS_PAGINATION_STORE_FIELD][reportType]; state[LOGS_PAGINATION_STORE_FIELD][reportType] = { page: 0,