Commit 8fd138c
fix(updates): post-install grid is empty when view filter is "All Packages"
After installing a package, the grid was getting rebuilt with only the
upgradable list (the fast `/api/os-updates/packages` path), even when the
user had the view-filter dropdown set to "All Packages". In that state
the just-installed package never appeared — the grid showed "No packages
found" until the user manually switched view+back to retrigger the
full-list fetch. Reproduced by installing a package (e.g. `btop`) from
the "Install Package" modal while All Packages was selected.
Read the current filter before kicking the reload, and after
`loadInstalledPackages()` returns, also call `loadAllInstalledPackages()`
when the active filter is "all" so the newly-installed package shows up
without manual intervention.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bacfa8e commit 8fd138c
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | | - | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
2568 | 2574 | | |
2569 | 2575 | | |
2570 | 2576 | | |
2571 | 2577 | | |
2572 | 2578 | | |
| 2579 | + | |
| 2580 | + | |
2573 | 2581 | | |
2574 | 2582 | | |
2575 | | - | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
2576 | 2589 | | |
2577 | 2590 | | |
2578 | 2591 | | |
| |||
0 commit comments