Skip to content

Commit

Permalink
fix(database-modal): forms in database modal will be effected by exte…
Browse files Browse the repository at this point in the history
…rnal form values (#20487)
  • Loading branch information
stephenLYZ committed Jun 30, 2022
1 parent 24a53c3 commit 932e304
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -130,7 +131,7 @@ const DatabaseConnectionForm = ({
validationErrors: JsonObject | null;
getValidation: () => void;
}) => (
<>
<Form>
<div
// @ts-ignore
css={(theme: SupersetTheme) => [
Expand Down Expand Up @@ -165,7 +166,7 @@ const DatabaseConnectionForm = ({
}),
)}
</div>
</>
</Form>
);
export const FormFieldMap = FORM_FIELD_MAP;

Expand Down

0 comments on commit 932e304

Please sign in to comment.