Commit 4671b7b
fix(settings): Surface slug validation errors on org settings form (#112556)
When changing the org slug to one already in use, the backend returns a
field-level error but the frontend was showing a generic 'Unable to save
change' toast. This was a regression from the form migration to TanStack
which landed after the backend fix.
Use setFieldErrors to display the API validation message inline on the
slug field instead of swallowing it.
<img width="1196" height="260" alt="Screenshot 2026-04-08 at 6 00 26 PM"
src="https://github.com/user-attachments/assets/77af01f0-f9b9-4fca-ab64-5754be786036"
/>
I kept the toast showing up so this diff remains small.
Fixes #112376
Co-authored-by: Claude <noreply@anthropic.com>1 parent 49d44f8 commit 4671b7b
File tree
2 files changed
+30
-2
lines changed- static/app/views/settings/organizationGeneralSettings
2 files changed
+30
-2
lines changedLines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
159 | 181 | | |
160 | 182 | | |
161 | 183 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
440 | | - | |
| 442 | + | |
441 | 443 | | |
442 | 444 | | |
443 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
446 | 452 | | |
| |||
0 commit comments