Skip to content

Invite form clears recipients even when adding the share fails #4185

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 share fails, the invite form still clears the selected recipients and the expiration date, so they have to be picked again. InviteCollaboratorForm.vue resets both without looking at the errors.

Reproduction Steps

  1. Open ⋮ > Share on a file
  2. Pick two recipients
  3. Make POST …/items/{id}/invite fail for one or both
  4. Click Share

Expected Outcome

The error toast appears, and the recipients whose share failed stay selected together with the expiration date.

Actual Outcome

The toast appears, but all recipients are removed and the expiration date is reset, also the one whose share failed.

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