mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 07:12:52 +08:00
Alert tab fails when datasource method targetContainsTemplate doesnt exist #14274
This commit is contained in:
@ -262,7 +262,7 @@ export class AlertTabCtrl {
|
||||
this.datasourceSrv.get(datasourceName).then(ds => {
|
||||
if (!ds.meta.alerting) {
|
||||
this.error = 'The datasource does not support alerting queries';
|
||||
} else if (ds.targetContainsTemplate(foundTarget)) {
|
||||
} else if (ds.targetContainsTemplate && ds.targetContainsTemplate(foundTarget)) {
|
||||
this.error = 'Template variables are not supported in alert queries';
|
||||
} else {
|
||||
this.error = '';
|
||||
|
Reference in New Issue
Block a user