Commit 9996526
fix: remove signature from store when delete returns 404
When attempting to delete a signature that no longer exists on the
server (404 response), the signature was not being removed from the
Pinia store, leaving stale data in the UI.
This fix checks for 404 status in the error handler and clears the
signature from the store, ensuring the UI state matches the server
state even when the signature was already deleted.
Also improved error handling to safely access nested response
properties and provide a fallback error message.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent f3c0ea3 commit 9996526
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
0 commit comments