From 2ee0c73a8a8633cb1fb9a9d28347bc8f5d57d385 Mon Sep 17 00:00:00 2001 From: Maria Alexandra <239999+axelavargas@users.noreply.github.com> Date: Tue, 19 Oct 2021 11:41:24 +0200 Subject: [PATCH] Graph: Fix annotation description not being shown on hover (#40581) --- public/app/features/annotations/annotation_tooltip.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/annotations/annotation_tooltip.ts b/public/app/features/annotations/annotation_tooltip.ts index 3ec2763d8dd..0d734a34a40 100644 --- a/public/app/features/annotations/annotation_tooltip.ts +++ b/public/app/features/annotations/annotation_tooltip.ts @@ -36,7 +36,7 @@ export function annotationTooltipDirective( let tooltip = '
'; let titleStateClass = ''; - if (event.alertId !== undefined) { + if (event.alertId !== undefined && event.newState) { const stateModel = alertDef.getStateDisplayModel(event.newState); titleStateClass = stateModel.stateClass; title = ` ${stateModel.text}`; @@ -50,7 +50,7 @@ export function annotationTooltipDirective( } let header = `
`; - if (event.login) { + if (event.login && event.avatarUrl) { header += `
`; } header += `