diff --git a/public/app/features/alerting/unified/components/rule-viewer/tabs/Details.tsx b/public/app/features/alerting/unified/components/rule-viewer/tabs/Details.tsx index 6ff99b02903..a23aada798f 100644 --- a/public/app/features/alerting/unified/components/rule-viewer/tabs/Details.tsx +++ b/public/app/features/alerting/unified/components/rule-viewer/tabs/Details.tsx @@ -79,12 +79,12 @@ const Details = ({ rule }: DetailsProps) => { {hasEvaluationDuration && ( <> Last evaluation - {evaluationTimestamp && evaluationDuration && ( + {evaluationTimestamp && evaluationDuration ? ( {formatDistanceToNowStrict(new Date(evaluationTimestamp))} ago, took{' '} {evaluationDuration}ms - )} + ) : null} )}