Skip to content

A failed tag change isn't reverted and gets saved with the next change #4148

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

When adding a tag fails, the tag still shows as assigned and gets saved silently with the next tag change. save() in TagsSelect.vue updates the selection optimistically and doesn't revert it on error.

Reproduction Steps

  1. Open a file's details and make the tags request fail (e.g. block PUT /graph/v1.0/extensions/org.libregraph/tags)
  2. Add the tag vtag: "Failed to edit tags" appears
  3. Unblock the request and add the tag vok

Expected Outcome

After the error the field shows the tags the file really has, and step 3 only adds vok.

Actual Outcome

The vtag chip stays, and step 3 sends both tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions