Commit c5f4c91
fix(sidebar): handle undefined sidebarProjectGroupingOverrides on stale settings
readClientSettings() loads client-settings.json as a raw JSON blob without
running the schema decoder, so users with pre-upgrade settings files have no
sidebarProjectGroupingOverrides key. Dereferencing it with bracket access
threw "Cannot read properties of undefined (reading '\${envId}:\${path}')"
and blocked the app from opening.
- resolveProjectGroupingMode: optional-chain the overrides record and fall
back to DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE when the mode itself is
missing
- openProjectGroupingDialog: optional-chain the overrides lookup
- Grouping-rule Select "global default" label falls back to the default
mode when settings.sidebarProjectGroupingMode is missing
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6673ca8 commit c5f4c91
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
1266 | 1267 | | |
1267 | 1268 | | |
1268 | 1269 | | |
1269 | | - | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
| |||
2089 | 2090 | | |
2090 | 2091 | | |
2091 | 2092 | | |
2092 | | - | |
| 2093 | + | |
2093 | 2094 | | |
2094 | 2095 | | |
2095 | 2096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | | - | |
74 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
0 commit comments