Commit ed06f048 by Torkel Ödegaard Committed by GitHub

Merge pull request #15570 from grafana/15563-plugin-text-mode

panel: defensive coding that fixes #15563
parents f6f484eb bd0f55cb
......@@ -14,7 +14,7 @@ export class QueryRowCtrl {
this.target = this.queryCtrl.target;
this.panel = this.panelCtrl.panel;
if (this.hasTextEditMode) {
if (this.hasTextEditMode && this.queryCtrl.toggleEditorMode) {
// expose this function to react parent component
this.panelCtrl.toggleEditorMode = this.queryCtrl.toggleEditorMode.bind(this.queryCtrl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment