Commit 7860532
fix(supergroup): Guard against NaN in supergroup row stats during loading (#112294)
Stats are fetched separately from groups, so when groups are in the
store but stats haven't populated yet, `count`/`userCount` are
undefined. `parseInt(undefined)` returns `NaN` which propagates through
the sum and renders as "NaN" in the supergroup row.
Guards with `|| 0` and `?? 0` so partially-loaded groups contribute zero
instead of poisoning the total.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d06d2fc commit 7860532
File tree
2 files changed
+15
-4
lines changed- static/app/views/issueList/supergroups
2 files changed
+15
-4
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments