Skip to content

Commit 2e2deb3

Browse files
fix(ui): Fix mechansim type link placement (#47131)
1 parent deebcbc commit 2e2deb3

File tree

1 file changed

+25
-27
lines changed
  • static/app/components/events/interfaces/crashContent/exception

1 file changed

+25
-27
lines changed

static/app/components/events/interfaces/crashContent/exception/mechanism.tsx

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,32 @@ export function Mechanism({data: mechanism, meta: mechanismMeta}: Props) {
3131
</StyledExternalLink>
3232
);
3333

34+
const typeName = type || 'unknown';
35+
3436
const pills = [
35-
<Pill
36-
key="mechanism"
37-
name={
38-
description ? (
39-
<Hovercard
40-
showUnderline
41-
header={
42-
<Details>
43-
{t('Details')}
44-
{linkElement}
45-
</Details>
46-
}
47-
body={description}
48-
>
49-
{'mechanism'}
50-
</Hovercard>
51-
) : linkElement ? (
52-
<Name>
53-
{'mechanism '}
54-
{linkElement}
55-
</Name>
56-
) : (
57-
'mechanism'
58-
)
59-
}
60-
value={type || 'unknown'}
61-
/>,
37+
<Pill key="mechanism" name="mechanism">
38+
{description ? (
39+
<Hovercard
40+
showUnderline
41+
header={
42+
<Details>
43+
{t('Details')}
44+
{linkElement}
45+
</Details>
46+
}
47+
body={description}
48+
>
49+
{typeName}
50+
</Hovercard>
51+
) : linkElement ? (
52+
<Name>
53+
{typeName}
54+
{linkElement}
55+
</Name>
56+
) : (
57+
typeName
58+
)}
59+
</Pill>,
6260
];
6361

6462
if (!isNil(handled)) {

0 commit comments

Comments
 (0)