Fix: The file count in the file header did not change after uploading or deleting files. (#14034)

### What problem does this PR solve?
Fix: The file count in the file header did not change after uploading or
deleting files.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
This commit is contained in:
balibabu
2026-04-14 18:07:32 +08:00
committed by GitHub
parent 576431de99
commit 1bc4868abe
13 changed files with 123 additions and 70 deletions

View File

@@ -215,7 +215,6 @@ export function ChunkMethodDialog({
const showAutoKeywords = useShowAutoKeywords();
async function onSubmit(data: z.infer<typeof FormSchema>) {
console.log('🚀 ~ onSubmit ~ data:', data);
const parserConfig = data.parser_config;
const imageTableContextWindow = Number(
parserConfig?.image_table_context_window || 0,
@@ -234,7 +233,6 @@ export function ChunkMethodDialog({
pages: parserConfig?.pages?.map((x: any) => [x.from, x.to]) ?? [],
},
};
console.log('🚀 ~ onSubmit ~ nextData:', nextData);
const ret = await onOk?.(nextData);
if (ret) {
hideModal?.();
@@ -378,19 +376,7 @@ export function ChunkMethodDialog({
<ExcelToHtmlFormField></ExcelToHtmlFormField>
)}
</div>
{/* {showRaptorParseConfiguration(
selectedTag as DocumentParserType,
) && (
<FormContainer>
<RaptorFormFields></RaptorFormFields>
</FormContainer>
)} */}
{/* {showGraphRagItems(selectedTag as DocumentParserType) &&
useGraphRag && (
<FormContainer>
<UseGraphRagFormField></UseGraphRagFormField>
</FormContainer>
)} */}
<div className="space-y-6 border-t-0.5 border-border-button pt-6 empty:hidden">
{showEntityTypes && <EntityTypesFormField />}
</div>