From 59bee70de128021fa777843d0d2eae215bca76f4 Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Fri, 24 Jun 2022 16:34:25 +0800 Subject: [PATCH] fix(database-modal): forms in database modal will be effected by external form values --- .../database/DatabaseModal/DatabaseConnectionForm/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/index.tsx index 0bb2cb4dad5f7..84108e40dcc65 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm/index.tsx @@ -19,6 +19,7 @@ import React, { FormEvent } from 'react'; import { SupersetTheme, JsonObject } from '@superset-ui/core'; import { InputProps } from 'antd/lib/input'; +import { Form } from 'src/components/Form'; import { hostField, portField, @@ -130,7 +131,7 @@ const DatabaseConnectionForm = ({ validationErrors: JsonObject | null; getValidation: () => void; }) => ( - <> +
[ @@ -165,7 +166,7 @@ const DatabaseConnectionForm = ({ }), )}
- +
); export const FormFieldMap = FORM_FIELD_MAP;