mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
QueryEditor: check if optional func toggleEditorMode is provided (#18705)
This commit is contained in:
committed by
Torkel Ödegaard
parent
66f739815b
commit
a540f05330
@@ -73,7 +73,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
|
||||
const hasNewError = prevProps.error !== this.props.error;
|
||||
|
||||
if (this.component) {
|
||||
if (hasToggledEditorMode) {
|
||||
if (hasToggledEditorMode && this.angularScope && this.angularScope.toggleEditorMode) {
|
||||
this.angularScope.toggleEditorMode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user