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()