Skip to content

[stable32] fix: remove signature from store when delete returns 404#6038

Merged
vitormattos merged 1 commit intostable32from
backport/6036/stable32
Dec 9, 2025
Merged

[stable32] fix: remove signature from store when delete returns 404#6038
vitormattos merged 1 commit intostable32from
backport/6036/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6036

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>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 9, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Dec 9, 2025
@vitormattos vitormattos merged commit 3f446bd into stable32 Dec 9, 2025
56 checks passed
@vitormattos vitormattos deleted the backport/6036/stable32 branch December 9, 2025 01:22
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant