fix(query editor): Fixed issue with removing query for data sources without collapsable query editors, fixes #4856

This commit is contained in:
Torkel Ödegaard 2016-04-29 23:20:24 +02:00
parent 0d85254a19
commit 70d03b7a1c
3 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,8 @@
### Bug fixes
* **Dashboard title**: Fixed max dashboard title width (media query) for large screens, fixes [#4859](https://github.com/grafana/grafana/issues/4859)
* **Annotations**: Fixed issue with entering annotation edit view, fixes [#4857](https://github.com/grafana/grafana/issues/4857)
* **Annotations**: Fixed issue with entering annotation edit view, fixes [#4857](https://github.com/grafana/grafana/issues/4857)
* **Remove query**: Fixed issue with removing query for data sources without collapsable query editors, fixes [#4856](https://github.com/grafana/grafana/issues/4856)
# 3.0.0-beta6 (2016-04-29)

View File

@ -4,7 +4,7 @@
"company": "Coding Instinct AB"
},
"name": "grafana",
"version": "3.0.0-beta6",
"version": "3.0.0-beta7",
"repository": {
"type": "git",
"url": "http://github.com/grafana/grafana.git"

View File

@ -79,7 +79,10 @@ export class QueryRowCtrl {
}
removeQuery() {
delete this.panelCtrl.__collapsedQueryCache[this.target.refId];
if (this.panelCtrl.__collapsedQueryCache) {
delete this.panelCtrl.__collapsedQueryCache[this.target.refId];
}
this.panel.targets = _.without(this.panel.targets, this.target);
this.panelCtrl.refresh();
}