You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/06/26 23:32:07 UTC
[GitHub] williaster commented on a change in pull request #5291: [dashboard
fix] force refresh charts under tabs
williaster commented on a change in pull request #5291: [dashboard fix] force refresh charts under tabs
URL: https://github.com/apache/incubator-superset/pull/5291#discussion_r198327940
##########
File path: superset/assets/src/chart/chartAction.js
##########
@@ -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 (Object.keys(chart.latestQueryFormData).length === 0) {
Review comment:
should there also be a check for whether `chart.latestQueryFormData` is defined?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org