mirror of
https://github.com/apache/superset.git
synced 2026-06-04 15:19:25 +00:00
fix(dashboard): Chart stuck in loading state when when datasets request and chart request fail (#19327)
This commit is contained in:
committed by
GitHub
parent
468c5ca29a
commit
a08f83bc60
@@ -83,6 +83,7 @@ const propTypes = {
|
||||
ownState: PropTypes.object,
|
||||
filterState: PropTypes.object,
|
||||
postTransformProps: PropTypes.func,
|
||||
datasetsStatus: PropTypes.oneOf(['loading', 'error', 'complete']),
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
@@ -338,6 +339,7 @@ export default class Chart extends React.Component {
|
||||
isFullSize,
|
||||
filterboxMigrationState,
|
||||
postTransformProps,
|
||||
datasetsStatus,
|
||||
} = this.props;
|
||||
|
||||
const { width } = this.state;
|
||||
@@ -463,6 +465,7 @@ export default class Chart extends React.Component {
|
||||
isDeactivatedViz={isDeactivatedViz}
|
||||
filterboxMigrationState={filterboxMigrationState}
|
||||
postTransformProps={postTransformProps}
|
||||
datasetsStatus={datasetsStatus}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user