mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
fix(chart): make chart error banners non-dismissible (#38014)
This commit is contained in:
@@ -38,6 +38,7 @@ type Props = {
|
||||
errorMitigationFunction?: () => void;
|
||||
fallback?: ReactNode;
|
||||
compact?: boolean;
|
||||
closable?: boolean;
|
||||
};
|
||||
|
||||
export function ErrorMessageWithStackTrace({
|
||||
@@ -51,6 +52,7 @@ export function ErrorMessageWithStackTrace({
|
||||
descriptionDetails,
|
||||
fallback,
|
||||
compact,
|
||||
closable = true,
|
||||
}: Props) {
|
||||
// Check if a custom error message component was registered for this message
|
||||
if (error) {
|
||||
@@ -62,6 +64,7 @@ export function ErrorMessageWithStackTrace({
|
||||
return (
|
||||
<ErrorMessageComponent
|
||||
compact={compact}
|
||||
closable={closable}
|
||||
error={error}
|
||||
source={source}
|
||||
subtitle={subtitle}
|
||||
@@ -99,6 +102,7 @@ export function ErrorMessageWithStackTrace({
|
||||
description={description}
|
||||
descriptionDetails={computedDescriptionDetails}
|
||||
compact={compact}
|
||||
closable={closable}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user