mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(query editor): Fixed issue with removing query for data sources without collapsable query editors, fixes #4856
This commit is contained in:
parent
0d85254a19
commit
70d03b7a1c
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
* **Dashboard title**: Fixed max dashboard title width (media query) for large screens, fixes [#4859](https://github.com/grafana/grafana/issues/4859)
|
* **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)
|
# 3.0.0-beta6 (2016-04-29)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"company": "Coding Instinct AB"
|
"company": "Coding Instinct AB"
|
||||||
},
|
},
|
||||||
"name": "grafana",
|
"name": "grafana",
|
||||||
"version": "3.0.0-beta6",
|
"version": "3.0.0-beta7",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://github.com/grafana/grafana.git"
|
"url": "http://github.com/grafana/grafana.git"
|
||||||
|
@ -79,7 +79,10 @@ export class QueryRowCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeQuery() {
|
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.panel.targets = _.without(this.panel.targets, this.target);
|
||||||
this.panelCtrl.refresh();
|
this.panelCtrl.refresh();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user