mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add bing form #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -13,6 +13,7 @@ import {
|
||||
import { Input, NumberInput } from '@/components/ui/input';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { memo } from 'react';
|
||||
import { useForm, useFormContext } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
import { initialExeSqlValues } from '../../constant';
|
||||
@ -135,7 +136,7 @@ export function ExeSQLFormWidgets({ loading }: { loading: boolean }) {
|
||||
);
|
||||
}
|
||||
|
||||
const ExeSQLForm = ({ node }: INextOperatorForm) => {
|
||||
function ExeSQLForm({ node }: INextOperatorForm) {
|
||||
const defaultValues = useFormValues(initialExeSqlValues, node);
|
||||
|
||||
const { onSubmit, loading } = useSubmitForm();
|
||||
@ -155,6 +156,6 @@ const ExeSQLForm = ({ node }: INextOperatorForm) => {
|
||||
</FormWrapper>
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default ExeSQLForm;
|
||||
export default memo(ExeSQLForm);
|
||||
|
||||
Reference in New Issue
Block a user