mirror of
https://github.com/apache/superset.git
synced 2026-06-08 17:19:20 +00:00
fix: "Refresh Dashboard" only refreshes active tab (#20688)
This commit is contained in:
@@ -162,6 +162,14 @@ class Chart extends React.Component {
|
||||
return true;
|
||||
}
|
||||
|
||||
// allow chart to update if the status changed and the previous status was loading.
|
||||
if (
|
||||
this.props?.chart?.chartStatus !== nextProps?.chart?.chartStatus &&
|
||||
this.props?.chart?.chartStatus === 'loading'
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// allow chart update/re-render only if visible:
|
||||
// under selected tab or no tab layout
|
||||
if (nextProps.isComponentVisible) {
|
||||
|
||||
Reference in New Issue
Block a user