Skip to content

Commit

Permalink
fix: Hundreds of chunks list can't choose page #1238 (#1532)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

fix: Hundreds of chunks list can't choose page #1238

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Jul 16, 2024
1 parent 607de74 commit 975798c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ const model: DvaModel<ChunkModelState> = {
return { ...state, available: payload };
},
setSearchString(state, { payload }) {
return { ...state, searchString: payload };
return {
...state,
pagination: { ...state.pagination, current: 1 },
searchString: payload,
};
},
setPagination(state, { payload }) {
return { ...state, pagination: { ...state.pagination, ...payload } };
Expand Down

0 comments on commit 975798c

Please sign in to comment.