From e9b57c9d6025168cc29442c85fd784902007052a Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Thu, 5 Jul 2018 14:30:56 +0200 Subject: [PATCH] Stop pagination reset when sorting is toggled Feature #13703 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- src/views/project-panel/project-panel-middleware.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/project-panel/project-panel-middleware.ts b/src/views/project-panel/project-panel-middleware.ts index de2e3fc2..a6a72561 100644 --- a/src/views/project-panel/project-panel-middleware.ts +++ b/src/views/project-panel/project-panel-middleware.ts @@ -41,7 +41,6 @@ export const projectPanelMiddleware: Middleware = store => next => { store.dispatch(actions.REQUEST_ITEMS({ id: PROJECT_PANEL_ID })); }), TOGGLE_SORT: handleProjectPanelAction(() => { - store.dispatch(actions.RESET_PAGINATION({ id: PROJECT_PANEL_ID })); store.dispatch(actions.REQUEST_ITEMS({ id: PROJECT_PANEL_ID })); }), SET_SEARCH_VALUE: handleProjectPanelAction(() => { @@ -69,7 +68,7 @@ export const projectPanelMiddleware: Middleware = store => next => { filters: FilterBuilder .create() .concat(FilterBuilder - .create(GroupContentsResourcePrefix.Collection) + .create() .addIsA("uuid", typeFilters.map(f => f.type))) .concat(FilterBuilder .create(GroupContentsResourcePrefix.Process) -- 2.30.2