This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 932e304ffb fix(database-modal): forms in database modal will be
effected by external form values (#20487)
932e304ffb is described below
commit 932e304ffbd14c46b2d816743c50c6aa7832fca2
Author: Stephen Liu <[email protected]>
AuthorDate: Thu Jun 30 16:21:33 2022 +0800
fix(database-modal): forms in database modal will be effected by external
form values (#20487)
---
.../data/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 0bb2cb4dad..84108e40dc 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;
}) => (
- <>
+ <Form>
<div
// @ts-ignore
css={(theme: SupersetTheme) => [
@@ -165,7 +166,7 @@ const DatabaseConnectionForm = ({
}),
)}
</div>
- </>
+ </Form>
);
export const FormFieldMap = FORM_FIELD_MAP;