Skip to content

Commit b1a28be

Browse files
authored
fix(perf): Add missing key prop in SampleInfo Block component (#68216)
the `time_spent_percentage` percentage block did not have a `key` prop, resulting in a console error message from React: ![image](https://github.com/getsentry/sentry/assets/16740047/02262e86-32da-4994-9904-44747a598b20)
1 parent 823a92b commit b1a28be

File tree

1 file changed

+1
-1
lines changed
  • static/app/views/starfish/views/spanSummaryPage/sampleList/sampleInfo

1 file changed

+1
-1
lines changed

static/app/views/starfish/views/spanSummaryPage/sampleList/sampleInfo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function SampleInfo(props: Props) {
8686
);
8787
case 'time_spent_percentage()':
8888
return (
89-
<Block title={DataTitles.timeSpent} alignment="left">
89+
<Block key={metric} title={DataTitles.timeSpent} alignment="left">
9090
<TimeSpentCell
9191
containerProps={{style}}
9292
percentage={spanMetrics?.[`time_spent_percentage()`]}

0 commit comments

Comments
 (0)