Skip to content

Commit

Permalink
fix(myDatasets): don't discard the pageInfo!
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Sep 4, 2019
1 parent 2a7a70c commit 8f25720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/reducers/myDatasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ const myDatasetsReducer: Reducer = (state = initialState, action: AnyAction): My

case LIST_REQ:
if (action.pageInfo.page === 1) {
return initialState
return {
...initialState,
pageInfo: action.pageInfo
}
}
return {
...state,
Expand Down

0 comments on commit 8f25720

Please sign in to comment.