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)

(cherry picked from commit 932e304)
  • Loading branch information
stephenLYZ authored and michael-s-molina committed Jul 6, 2022
1 parent 4b2397f commit 3b5513b
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 3b5513b

Please sign in to comment.