mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix: Clicking the checkbox of the pop-up window for editing chunk is invalid #3726 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -95,12 +95,21 @@ export const useUpdateChunk = () => {
|
||||
const { documentId } = useGetKnowledgeSearchParams();
|
||||
|
||||
const onChunkUpdatingOk = useCallback(
|
||||
async ({ content, keywords }: { content: string; keywords: string }) => {
|
||||
async ({
|
||||
content,
|
||||
keywords,
|
||||
available_int,
|
||||
}: {
|
||||
content: string;
|
||||
keywords: string;
|
||||
available_int: number;
|
||||
}) => {
|
||||
const code = await createChunk({
|
||||
content_with_weight: content,
|
||||
doc_id: documentId,
|
||||
chunk_id: chunkId,
|
||||
important_kwd: keywords, // keywords
|
||||
available_int,
|
||||
});
|
||||
|
||||
if (code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user