Merge pull request #101 from flant/fix_5_4_regression_query_undefined

fix: regression in 5.4 after implementing workaround for 6.7
This commit is contained in:
Ivan Mikheykin
2020-05-24 15:10:02 +03:00
committed by GitHub
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -411,8 +411,8 @@ System.register(["lodash", "./color_legend", "app/core/utils/kbn", "app/plugins/
}, {
key: "updateTimeRange",
value: function updateTimeRange() {
var ret = _get(_getPrototypeOf(StatusHeatmapCtrl.prototype), "updateTimeRange", this).call(this);
value: function updateTimeRange(datasource) {
var ret = _get(_getPrototypeOf(StatusHeatmapCtrl.prototype), "updateTimeRange", this).call(this, datasource);
this.calculateInterval();
return ret;
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -266,8 +266,8 @@ class StatusHeatmapCtrl extends MetricsPanelCtrl {
// Quick workaround for 6.7 and 7.0+. There is no call to
// calculateInterval in updateTimeRange in those versions.
updateTimeRange() {
let ret = super.updateTimeRange();
updateTimeRange(datasource?: any) {
let ret = super.updateTimeRange(datasource);
this.calculateInterval();
return ret;
}