From 3820de916c477fee1f36d6d620d3e5571d13a42e Mon Sep 17 00:00:00 2001 From: Yongteng Lei Date: Wed, 17 Dec 2025 19:48:10 +0800 Subject: [PATCH] Fix: duplicated PDF parser (#12000) ### What problem does this PR solve? Fix duplicated PDF parser. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/chunk-method-dialog/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/components/chunk-method-dialog/index.tsx b/web/src/components/chunk-method-dialog/index.tsx index ae6e62aa6..bf44c11d7 100644 --- a/web/src/components/chunk-method-dialog/index.tsx +++ b/web/src/components/chunk-method-dialog/index.tsx @@ -42,6 +42,7 @@ import { ExcelToHtmlFormField } from '../excel-to-html-form-field'; import { FormContainer } from '../form-container'; import { LayoutRecognizeFormField } from '../layout-recognize-form-field'; import { MaxTokenNumberFormField } from '../max-token-number-from-field'; +import { MinerUOptionsFormField } from '../mineru-options-form-field'; import { ButtonLoading } from '../ui/button'; import { Input } from '../ui/input'; import { DynamicPageRange } from './dynamic-page-range'; @@ -335,7 +336,10 @@ export function ChunkMethodDialog({ className="space-y-3" > {showOne && ( - + <> + + {isMineruSelected && } + )} {showMaxTokenNumber && ( <> @@ -359,9 +363,6 @@ export function ChunkMethodDialog({ } className="space-y-3" > - {isMineruSelected && ( - - )} {selectedTag === DocumentParserType.Naive && ( )}