Skip to content

Commit d148d2b

Browse files
Fix profiler crash
1 parent c221189 commit d148d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/sidebar/runner/profiler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const ProfilerDialog: React.FC = () => {
3434
if (!match.currentRound.bodies.hasId(selectedBodyID)) return
3535

3636
const body = match.currentRound.bodies.getById(selectedBodyID)
37-
const index = match.profilerFiles[body.team.id - 1].profiles.findIndex((p) => p.id === body.id)
37+
const index = match.profilerFiles[body.team.id - 1]?.profiles.findIndex((p) => p.id === body.id)
3838

3939
if (index === -1) return
4040

0 commit comments

Comments
 (0)