diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx index eb3db6b13..5d094f8da 100644 --- a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx +++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx @@ -58,6 +58,7 @@ interface Props extends RouteComponentProps { checkForLatestSessions: () => void; toggleFavorite: (sessionId: string) => Promise; sites: object[]; + isLoggedIn: boolean; siteId: string; } diff --git a/frontend/app/duck/search.js b/frontend/app/duck/search.js index 98b04f828..5962dfb89 100644 --- a/frontend/app/duck/search.js +++ b/frontend/app/duck/search.js @@ -71,11 +71,7 @@ function reducer(state = initialState, action = {}) { case EDIT: return state.mergeIn(['instance'], action.instance).set('currentPage', 1); case APPLY: - const _state = action.fromUrl ? state.set('instance', Filter(action.filter)) : state.mergeIn(['instance'], action.filter); - if (action.resetPage) { - _state.set('currentPage', 1) - } - return _state + return action.fromUrl ? state.set('instance', Filter(action.filter)).set('currentPage', 1) : state.mergeIn(['instance'], action.filter).set('currentPage', 1); case success(FETCH): return state.set('instance', action.data); case success(FETCH_LIST):