diff --git a/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx b/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx index c28e5b11366..7884babc702 100644 --- a/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx +++ b/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx @@ -54,7 +54,8 @@ export function ErrorMessageWithStackTrace({ // Check if a custom error message component was registered for this message if (error) { const ErrorMessageComponent = getErrorMessageComponentRegistry().get( - error.error_type, + // @ts-ignore: plan to modify this part so that all errors in Superset 6.0 are standardized as Superset API error types + error.errorType ?? error.error_type, ); if (ErrorMessageComponent) { return ( diff --git a/superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx b/superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx index cbd4705d65d..0a5d5b84886 100644 --- a/superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx +++ b/superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx @@ -95,6 +95,7 @@ const Styles = styled.div` } .error-alert { margin: ${({ theme }) => 2 * theme.sizeUnit}px; + min-height: 150px; } .ant-dropdown-trigger { margin-left: ${({ theme }) => 2 * theme.sizeUnit}px; @@ -454,16 +455,14 @@ class DatasourceControl extends PureComponent { {isMissingDatasource && !isMissingParams && (