- Notifications
You must be signed in to change notification settings - Fork925
Commit0d9d751
committed
refactor: improve preset selection logic in workspace creation
Replace findIndex with find() to avoid -1 edge case and consolidate preset initialization into single useEffect for better maintainability.Signed-off-by: Danny Kopping <dannykopping@gmail.com>1 parent83192a7 commit0d9d751
File tree
1 file changed
+17
-18
lines changed- site/src/pages/CreateWorkspacePage
1 file changed
+17
-18
lines changedLines changed: 17 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| 155 | + | |
| 156 | + | |
155 | 157 |
| |
156 |
| - | |
| 158 | + | |
157 | 159 |
| |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 |
| |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
170 | 167 |
| |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
175 | 174 |
| |
176 |
| - | |
| 175 | + | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 |
| - | |
181 | 180 |
| |
182 | 181 |
| |
183 | 182 |
| |
|
0 commit comments
Comments
(0)