Commit 1979f4c
authored
fix(desktop): v2 sidebar section count reflects visually grouped workspaces (#3544)
Ungrouped workspaces that render after a section header are already
visually grouped with that section (shared accent color, collapse
together) and get committed into it on next drag. The count, however,
was reading section.workspaces which only included workspaces whose DB
sectionId already matched — so a freshly created section showed "(0)"
while the user sees N workspaces beneath it.
Reparent those workspaces into section.workspaces in the data layer so
the count matches the visual grouping and DnD commit behavior.1 parent 0b62387 commit 1979f4c
1 file changed
Lines changed: 23 additions & 1 deletion
File tree
- apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/hooks/useDashboardSidebarData
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
330 | 352 | | |
331 | 353 | | |
332 | 354 | | |
| |||
0 commit comments