You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2025/03/05 01:09:36 UTC
(superset) 01/01: fix default error
This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch elizabeth/fix-default-error
in repository https://gitbox.apache.org/repos/asf/superset.git
commit dc066845e8d2d669e255c6878e52f930d699aad9
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Tue Mar 4 17:07:18 2025 -0800
fix default error
---
superset-frontend/src/components/Chart/Chart.tsx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/superset-frontend/src/components/Chart/Chart.tsx b/superset-frontend/src/components/Chart/Chart.tsx
index 0389ebd309..aa1c8cf25d 100644
--- a/superset-frontend/src/components/Chart/Chart.tsx
+++ b/superset-frontend/src/components/Chart/Chart.tsx
@@ -240,15 +240,7 @@ class Chart extends PureComponent<ChartProps, {}> {
height,
datasetsStatus,
} = this.props;
- let error = queryResponse?.errors?.[0];
- if (error === undefined) {
- error = {
- error_type: ErrorTypeEnum.FRONTEND_NETWORK_ERROR,
- level: 'error',
- message: t('Check your network connection'),
- extra: null,
- };
- }
+ const error = queryResponse?.errors?.[0];
const message = chartAlert || queryResponse?.message;
// if datasource is still loading, don't render JS errors