From 9d2b4c1786f76e0503e765f195162650c9116604 Mon Sep 17 00:00:00 2001 From: onlylhf <27225745+onlylhf@users.noreply.github.com> Date: Sat, 21 Jun 2025 14:04:09 +0800 Subject: [PATCH] fix: linter error --- web/app/components/datasets/create/step-two/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index f32df86272..ec053ccbe6 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -210,12 +210,10 @@ const StepTwo = ({ setDocForm(value) - if (value === ChunkingMode.parentChild) { + if (value === ChunkingMode.parentChild) setSegmentationType(ProcessMode.parentChild) - } - else { + else setSegmentationType(ProcessMode.general) - } // eslint-disable-next-line ts/no-use-before-define currentEstimateMutation.reset()