fix(chart): make chart error banners non-dismissible (#38014)

This commit is contained in:
Enzo Martellucci
2026-02-26 17:01:02 +01:00
committed by GitHub
parent f5d489da29
commit c1c012fb52
13 changed files with 70 additions and 0 deletions

View File

@@ -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}
/>
);
}