fix: validation errors appearing after ssh tunnel switch (#24849)

This commit is contained in:
Hugh A. Miles II
2023-08-02 17:41:37 -04:00
committed by GitHub
parent bf1b1a4c46
commit b71541fb7f
3 changed files with 8 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ export const hostField = ({
onChange={changeMethods.onParametersChange}
/>
);
export const portField = ({
required,
changeMethods,
@@ -255,6 +256,7 @@ export const forceSSLField = ({
export const SSHTunnelSwitch = ({
isEditMode,
changeMethods,
clearValidationErrors,
db,
}: FieldPropTypes) => (
<div css={(theme: SupersetTheme) => infoTooltip(theme)}>
@@ -270,6 +272,7 @@ export const SSHTunnelSwitch = ({
value: changed,
},
});
clearValidationErrors();
}}
data-test="ssh-tunnel-switch"
/>