Commit 46c9d6f
Fix live show "Go to Page" navigation for pages 100+ (#876)
Parse page numbers as integers in loadCompiledScript() to fix string
comparison bug. Object.entries() returns keys as strings, causing
"100" > "99" to evaluate false (lexicographic comparison).
Also add Number() defense-in-depth in navigateTo() check.
Fixes #875
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 670634f commit 46c9d6f
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
| 562 | + | |
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
| |||
975 | 976 | | |
976 | 977 | | |
977 | 978 | | |
978 | | - | |
| 979 | + | |
979 | 980 | | |
980 | 981 | | |
981 | 982 | | |
| |||
0 commit comments