From ef3f25420838f8f1ba497e5bc59f0c6a3e49e054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 23 Feb 2022 13:34:33 +0100 Subject: [PATCH] Annotations: Fixes issue with tags filter not showing in annotation query (#45724) --- .../datasource/grafana/components/AnnotationQueryEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/grafana/components/AnnotationQueryEditor.tsx b/public/app/plugins/datasource/grafana/components/AnnotationQueryEditor.tsx index 39e0d5a0821..0e956cd7e1b 100644 --- a/public/app/plugins/datasource/grafana/components/AnnotationQueryEditor.tsx +++ b/public/app/plugins/datasource/grafana/components/AnnotationQueryEditor.tsx @@ -88,7 +88,7 @@ export default function AnnotationQueryEditor({ query, onChange }: Props) { onChange={onMaxLimitChange} /> - {type === GrafanaAnnotationType.Tags && tags && ( + {type === GrafanaAnnotationType.Tags && ( <> @@ -100,7 +100,7 @@ export default function AnnotationQueryEditor({ query, onChange }: Props) { inputId="grafana-annotations__tags" onChange={onTagsChange} tagOptions={getAnnotationTags} - tags={tags} + tags={tags ?? []} />