Commit 913af50
committed
fix: error handler to prevent JS error when receive 4xx from API
When the data to save is invalid, the API will return 400 and before
this, will erase all settings.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 5e4c3c8 commit 913af50
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| |||
0 commit comments