fix: Chunks cannot be deleted #1912 (#1913)

### What problem does this PR solve?

fix: Chunks cannot be deleted #1912

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-08-12 17:29:44 +08:00
committed by GitHub
parent 68d1315079
commit 936d8ab7dd
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ export const useDeleteChunk = () => {
mutateAsync,
} = useMutation({
mutationKey: ['deleteChunk'],
mutationFn: async (params: { chunkIds: string[]; documentId: string }) => {
mutationFn: async (params: { chunkIds: string[]; doc_id: string }) => {
const { data } = await kbService.rm_chunk(params);
if (data.retcode === 0) {
setPaginationParams(1);