diff --git a/public/app/features/alerting/unified/components/AnnotationDetailsField.tsx b/public/app/features/alerting/unified/components/AnnotationDetailsField.tsx index 5d8061c220c..5c193fd1053 100644 --- a/public/app/features/alerting/unified/components/AnnotationDetailsField.tsx +++ b/public/app/features/alerting/unified/components/AnnotationDetailsField.tsx @@ -34,15 +34,22 @@ export const AnnotationDetailsField: FC = ({ annotationKey, value }) => { const AnnotationValue: FC = ({ annotationKey, value }) => { const styles = useStyles(getStyles); - if (wellableAnnotationKeys.includes(annotationKey)) { - return {value}; - } else if (value && value.startsWith('http')) { + + const needsWell = wellableAnnotationKeys.includes(annotationKey); + const needsLink = value && value.startsWith('http'); + + if (needsWell) { + return {value}; + } + + if (needsLink) { return ( {value} ); } + return <>{value}; };