mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[dashboard fix] force refresh charts under tabs (#5291)
This commit is contained in:
@@ -202,5 +202,10 @@ export function runQuery(formData, force = false, timeout = 60, key) {
|
||||
}
|
||||
|
||||
export function refreshChart(chart, force, timeout) {
|
||||
return dispatch => dispatch(runQuery(chart.latestQueryFormData, force, timeout, chart.id));
|
||||
return (dispatch) => {
|
||||
if (!chart.latestQueryFormData || Object.keys(chart.latestQueryFormData).length === 0) {
|
||||
return;
|
||||
}
|
||||
dispatch(runQuery(chart.latestQueryFormData, force, timeout, chart.id));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user