Feat: Fixed the issue where the page would refresh continuously when opening the sheet on the right side of the canvas #3221 (#7756)

### What problem does this PR solve?

Feat: Fixed the issue where the page would refresh continuously when
opening the sheet on the right side of the canvas #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-21 17:03:16 +08:00
committed by GitHub
parent e3e7c7ddaa
commit 754a5e1cee
5 changed files with 125 additions and 11 deletions

View File

@ -1,6 +1,5 @@
import Editor, { loader } from '@monaco-editor/react';
import { INextOperatorForm } from '../../interface';
import { DynamicInputVariable } from './dynamic-input-variable';
import {
Form,
@ -13,7 +12,7 @@ import {
import { RAGFlowSelect } from '@/components/ui/select';
import { ProgrammingLanguage } from '@/constants/agent';
import { ICodeForm } from '@/interfaces/database/flow';
import { useTranslation } from 'react-i18next';
import { DynamicInputVariable } from './next-variable';
loader.config({ paths: { vs: '/vs' } });
@ -24,7 +23,6 @@ const options = [
const CodeForm = ({ form, node }: INextOperatorForm) => {
const formData = node?.data.form as ICodeForm;
const { t } = useTranslation();
// useEffect(() => {
// setTimeout(() => {
@ -47,12 +45,9 @@ const CodeForm = ({ form, node }: INextOperatorForm) => {
<FormLabel>
<FormField
control={form.control}
name="channel"
name="lang"
render={({ field }) => (
<FormItem>
<FormLabel tooltip={t('channelTip')}>
{t('channel')}
</FormLabel>
<FormControl>
<RAGFlowSelect {...field} options={options} />
</FormControl>