Commit c35b08b
committed
fix(tui/panels): skip profile on Get error instead of zero-value row
loadItems discarded the error from d.Profiles.Get(n) and appended a
zero-value profileItem on failure. Now it skips the entry. Unreachable today
(List and Get read the same in-memory map, single-threaded TUI) but removes a
latent footgun if List/Get ever diverge. No test: the error path can't be
triggered through the public Store API without contorting internals.1 parent ec5cc43 commit c35b08b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
0 commit comments