chore(Network Errors): Update network errors on filter bars and charts (#31811)

Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
This commit is contained in:
Mehmet Salih Yavuz
2025-01-28 21:13:43 +03:00
committed by GitHub
parent 6478bb7eab
commit 23d9f46d30
5 changed files with 90 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ type Props = {
descriptionDetails?: ReactNode;
errorMitigationFunction?: () => void;
fallback?: ReactNode;
compact?: boolean;
};
export default function ErrorMessageWithStackTrace({
@@ -48,6 +49,7 @@ export default function ErrorMessageWithStackTrace({
description,
descriptionDetails,
fallback,
compact,
}: Props) {
// Check if a custom error message component was registered for this message
if (error) {
@@ -57,6 +59,7 @@ export default function ErrorMessageWithStackTrace({
if (ErrorMessageComponent) {
return (
<ErrorMessageComponent
compact={compact}
error={error}
source={source}
subtitle={subtitle}
@@ -89,6 +92,7 @@ export default function ErrorMessageWithStackTrace({
message={subtitle}
description={description}
descriptionDetails={computedDescriptionDetails}
compact={compact}
/>
);
}