ignore empty tags (#41529)

This commit is contained in:
Erik Sundell
2021-11-11 13:38:04 +01:00
committed by GitHub
parent 05c672b755
commit fa3261eaf2
6 changed files with 9 additions and 11 deletions

View File

@@ -67,7 +67,6 @@ export default class CloudMonitoringDatasource extends DataSourceWithBackend<
metricType: this.templateSrv.replace(annotation.target.metricType, options.scopedVars || {}),
title: this.templateSrv.replace(annotation.target.title, options.scopedVars || {}),
text: this.templateSrv.replace(annotation.target.text, options.scopedVars || {}),
tags: (annotation.target.tags || []).map((t: string) => this.templateSrv.replace(t, options.scopedVars || {})),
projectName: this.templateSrv.replace(
annotation.target.projectName ? annotation.target.projectName : this.getDefaultProject(),
options.scopedVars || {}