diff --git a/superset-frontend/src/chart/Chart.jsx b/superset-frontend/src/chart/Chart.jsx index d66dd86b15..e5cfd72585 100644 --- a/superset-frontend/src/chart/Chart.jsx +++ b/superset-frontend/src/chart/Chart.jsx @@ -68,6 +68,9 @@ const propTypes = { }; const BLANK = {}; +const NONEXISTENT_DATASET = t( + 'The dataset associated with this chart no longer exists', +); const defaultProps = { addFilter: () => BLANK, @@ -178,7 +181,11 @@ class Chart extends React.PureComponent { const message = chartAlert || queryResponse?.message; // if datasource is still loading, don't render JS errors - if (chartAlert && datasource === PLACEHOLDER_DATASOURCE) { + if ( + chartAlert !== undefined && + chartAlert !== NONEXISTENT_DATASET && + datasource === PLACEHOLDER_DATASOURCE + ) { return (