Commit 6f555d4
Fix Hot Run tab crash when a result has fewer queries
The `pandas` result file has only 42 query entries (missing one), and
the `hot` metric is the only one that does not filter out in-memory
systems. Switching to Hot Run accessed `elem.result[42][run_num]` and
crashed with `Cannot read properties of undefined (reading '0')`.
Make the JS robust to short result arrays:
- `selectRun` returns null when given null/undefined timings
- baseline computation uses optional chaining
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b62a10f commit 6f555d4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
713 | 714 | | |
714 | 715 | | |
715 | 716 | | |
| |||
777 | 778 | | |
778 | 779 | | |
779 | 780 | | |
780 | | - | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
0 commit comments