mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix: validation errors appearing after ssh tunnel switch (#24849)
This commit is contained in:
@@ -267,7 +267,6 @@ export function dbReducer(
|
||||
};
|
||||
case ActionType.extraInputChange:
|
||||
// "extra" payload in state is a string
|
||||
|
||||
if (
|
||||
action.payload.name === 'schema_cache_timeout' ||
|
||||
action.payload.name === 'table_cache_timeout'
|
||||
@@ -1635,6 +1634,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
getValidation={() => getValidation(db)}
|
||||
validationErrors={validationErrors}
|
||||
getPlaceholder={getPlaceholder}
|
||||
clearValidationErrors={() => setValidationErrors(null)}
|
||||
/>
|
||||
{db?.parameters?.ssh && (
|
||||
<SSHTunnelContainer>{renderSSHTunnelForm()}</SSHTunnelContainer>
|
||||
|
||||
Reference in New Issue
Block a user