fix(dashboard): Chart stuck in loading state when when datasets request and chart request fail (#19327)

This commit is contained in:
Kamil Gabryjelski
2022-03-23 15:43:32 +01:00
committed by GitHub
parent 468c5ca29a
commit a08f83bc60
7 changed files with 37 additions and 4 deletions

View File

@@ -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>