balibabu
commited on
Commit
·
48e171a
1
Parent(s):
7d04573
fix: Hundreds of chunks list can't choose page #1238 (#1532)
Browse files### 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)
web/src/pages/add-knowledge/components/knowledge-chunk/model.ts
CHANGED
|
@@ -53,7 +53,11 @@ const model: DvaModel<ChunkModelState> = {
|
|
| 53 |
return { ...state, available: payload };
|
| 54 |
},
|
| 55 |
setSearchString(state, { payload }) {
|
| 56 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
},
|
| 58 |
setPagination(state, { payload }) {
|
| 59 |
return { ...state, pagination: { ...state.pagination, ...payload } };
|
|
|
|
| 53 |
return { ...state, available: payload };
|
| 54 |
},
|
| 55 |
setSearchString(state, { payload }) {
|
| 56 |
+
return {
|
| 57 |
+
...state,
|
| 58 |
+
pagination: { ...state.pagination, current: 1 },
|
| 59 |
+
searchString: payload,
|
| 60 |
+
};
|
| 61 |
},
|
| 62 |
setPagination(state, { payload }) {
|
| 63 |
return { ...state, pagination: { ...state.pagination, ...payload } };
|