mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
fix(prometheus): fixed bug in prometheus query editor, fixes #5107
This commit is contained in:
parent
37821e6d63
commit
df0ddc0b50
@ -58,6 +58,10 @@ class PrometheusQueryCtrl extends QueryCtrl {
|
||||
|
||||
updateLink() {
|
||||
var range = this.panelCtrl.range;
|
||||
if (!range) {
|
||||
return;
|
||||
}
|
||||
|
||||
var rangeDiff = Math.ceil((range.to.valueOf() - range.from.valueOf()) / 1000);
|
||||
var endTime = range.to.utc().format('YYYY-MM-DD HH:mm');
|
||||
var expr = {
|
||||
|
Loading…
Reference in New Issue
Block a user