Commit f282ad6
committed
fixup! feat(web): port similar images implementation from origin/main
fix: recompute filtered groups before calculating deletable stats
When an individual item is toggled, the updated selection is stored in
updatedAllGroups, but the deletable counts were computed from
filteredGroups, which was derived before the update. This caused the
remove count/size to stay stale after toggling items until another
action recalculated state.1 parent 03ef360 commit f282ad6
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
389 | 394 | | |
390 | | - | |
| 395 | + | |
391 | 396 | | |
392 | 397 | | |
393 | 398 | | |
| |||
711 | 716 | | |
712 | 717 | | |
713 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
714 | 723 | | |
715 | 724 | | |
716 | 725 | | |
| |||
963 | 972 | | |
964 | 973 | | |
965 | 974 | | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
972 | 981 | | |
973 | 982 | | |
974 | 983 | | |
| |||
0 commit comments