|
|
@@ -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 = '';
|