Skip to content

Commit c77916b

Browse files
authored
fix(insights): show - instead of null when metric value is null (#91656)
1 parent 0080f96 commit c77916b

File tree

1 file changed

+1
-1
lines changed
  • static/app/views/insights/mobile/screens

1 file changed

+1
-1
lines changed

static/app/views/insights/mobile/screens/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {MetricsProperty, SpanMetricsProperty} from 'sentry/views/insights/t
66
import {VitalState} from 'sentry/views/performance/vitalDetail/utils';
77

88
const formatMetricValue = (metric: MetricValue, field?: string | undefined): string => {
9-
if (metric.value === undefined) {
9+
if (metric.value === undefined || metric.value === null) {
1010
return '-';
1111
}
1212
if (typeof metric.value === 'number' && metric.type === 'duration' && metric.unit) {

0 commit comments

Comments
 (0)