mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
fix: Display Error Messages in DB Connection Modal (#22200)
This commit is contained in:
@@ -132,7 +132,7 @@ export default function ErrorAlert({
|
||||
{description && (
|
||||
<div className="error-body">
|
||||
<p>{description}</p>
|
||||
{!isExpandable && body && (
|
||||
{!isExpandable && (
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
@@ -213,7 +213,10 @@ export default function ErrorAlert({
|
||||
>
|
||||
<>
|
||||
<p>{subtitle}</p>
|
||||
<br />
|
||||
{/* This break was in the original design of the modal but
|
||||
the spacing looks really off if there is only
|
||||
subtitle or a body */}
|
||||
{subtitle && body && <br />}
|
||||
{body}
|
||||
</>
|
||||
</ErrorModal>
|
||||
|
||||
Reference in New Issue
Block a user