mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
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:
committed by
GitHub
parent
6478bb7eab
commit
23d9f46d30
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user