Skip to content

Commit

Permalink
addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Dec 1, 2022
1 parent 515ce47 commit 5730d3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions superset-frontend/src/components/ErrorMessage/ErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function ErrorAlert({
{description && (
<div className="error-body">
<p>{description}</p>
{!isExpandable && body && (
{!isExpandable && (
<span
role="button"
tabIndex={0}
Expand Down Expand Up @@ -212,8 +212,12 @@ export default function ErrorAlert({
}
>
<>
<p>{subtitle}</p>
<br />
{subtitle && (
<>
<p>{subtitle}</p>
<br />
</>
)}
{body}
</>
</ErrorModal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1165,9 +1165,9 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
description={t(
'We are unable to connect to your database. Click "See more" for database-provided information that may help troubleshoot the issue.',
)}
stackTrace={alertErrors?.[0] || validationErrors?.description}
subtitle={validationErrors?.description}
stackTrace={alertErrors?.[0]}
copyText={validationErrors?.description}
subtitle={validationErrors?.description}
/>
</ErrorAlertContainer>
);
Expand Down

0 comments on commit 5730d3b

Please sign in to comment.