We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c221189 commit d148d2bCopy full SHA for d148d2b
client/src/components/sidebar/runner/profiler.tsx
@@ -34,7 +34,7 @@ export const ProfilerDialog: React.FC = () => {
34
if (!match.currentRound.bodies.hasId(selectedBodyID)) return
35
36
const body = match.currentRound.bodies.getById(selectedBodyID)
37
- const index = match.profilerFiles[body.team.id - 1].profiles.findIndex((p) => p.id === body.id)
+ const index = match.profilerFiles[body.team.id - 1]?.profiles.findIndex((p) => p.id === body.id)
38
39
if (index === -1) return
40
0 commit comments