Skip to content

Commit 1993943

Browse files
authored
fix(metrics): emptry description fallback (#70844)
1 parent fde7119 commit 1993943

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

static/app/components/metrics/metricSamplesTable.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,19 @@ function SpanId({
593593
}
594594

595595
function SpanDescription({description, project}: {description: string; project: string}) {
596+
if (!description) {
597+
return (
598+
<Flex gap={space(0.75)} align="center">
599+
<ProjectRenderer projectSlug={project} />
600+
<EmptyValueContainer>{t('(none)')}</EmptyValueContainer>
601+
</Flex>
602+
);
603+
}
604+
596605
return (
597606
<Flex gap={space(0.75)} align="center">
598607
<ProjectRenderer projectSlug={project} />
599-
<Container>{description} </Container>
608+
<Container>{description}</Container>
600609
</Flex>
601610
);
602611
}

0 commit comments

Comments
 (0)