Commit 7346e62
Fix toggle click and directory stat display bugs in ChatView
- Fix first toggle click failing for unregistered top-level directories by
passing the effective expanded state to toggleDirectory instead of toggling
the raw (possibly undefined) state value.
- Fix directory nodes showing +0/-0 when all children lack stats by guarding
DiffStatLabel render with hasNonZeroStat, consistent with file nodes and
the summary header.
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>1 parent d898b66 commit 7346e62
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3176 | 3176 | | |
3177 | 3177 | | |
3178 | 3178 | | |
3179 | | - | |
| 3179 | + | |
3180 | 3180 | | |
3181 | 3181 | | |
3182 | | - | |
| 3182 | + | |
3183 | 3183 | | |
3184 | 3184 | | |
3185 | 3185 | | |
| |||
3193 | 3193 | | |
3194 | 3194 | | |
3195 | 3195 | | |
3196 | | - | |
| 3196 | + | |
3197 | 3197 | | |
3198 | 3198 | | |
3199 | 3199 | | |
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
3213 | | - | |
3214 | | - | |
3215 | | - | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
3216 | 3218 | | |
3217 | 3219 | | |
3218 | 3220 | | |
| |||
0 commit comments