mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 04:39:00 +08:00
### What problem does this PR solve? Fix: Unified terminology to "Pipeline" and optimized related component logic. #9869 - Added logic to clear pipeline_id when parseType changes in the chunk method dialog. - Fixed an issue in the Tooltip form component that prevented clicks from triggering saves. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { DataFlowSelect } from '@/components/data-pipeline-select';
|
||||
import { ButtonLoading } from '@/components/ui/button';
|
||||
import {
|
||||
Dialog,
|
||||
@ -18,11 +19,10 @@ import { Input } from '@/components/ui/input';
|
||||
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
|
||||
import { IModalProps } from '@/interfaces/common';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useEffect } from 'react';
|
||||
import { useForm, useWatch } from 'react-hook-form';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { DataFlowSelect } from '@/components/data-pipeline-select';
|
||||
import {
|
||||
ChunkMethodItem,
|
||||
EmbeddingModelItem,
|
||||
@ -95,6 +95,13 @@ export function InputForm({ onOk }: IModalProps<any>) {
|
||||
control: form.control,
|
||||
name: 'parseType',
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
console.log('parseType', parseType);
|
||||
if (parseType === 1) {
|
||||
form.setValue('pipeline_id', '');
|
||||
}
|
||||
}, [parseType, form]);
|
||||
const { navigateToAgents } = useNavigatePage();
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user