Skip to content

Items removed by another session stay in the selection #4142

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 another session deletes or moves a selected item, its id stays in the selection. removeResources in the resources store never prunes selectedIds.

Reproduction Steps

  1. In a folder with x.txt and y.txt, tick x.txt
  2. Delete x.txt from another session (it disappears via SSE)
  3. Tick y.txt, then restore x.txt from the trash bin in the other session

Expected Outcome

The removed item leaves the selection; "Select all" stays unchecked and the restored file comes back unselected.

Actual Outcome

After step 2 the "Select all" checkbox is checked although nothing is ticked. After step 3 x.txt reappears already selected ("2 items selected"), so the next batch action includes it.

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