Skip to content

fix: delete action showing without any selected file in trash bin#1853

Merged
kulmann merged 1 commit intomainfrom
fix/duplicated-delete-action-in-trashbin
Jan 21, 2026
Merged

fix: delete action showing without any selected file in trash bin#1853
kulmann merged 1 commit intomainfrom
fix/duplicated-delete-action-in-trashbin

Conversation

@JammingBen
Copy link
Member

Fixes a regression from #1832

@JammingBen JammingBen self-assigned this Jan 21, 2026
Copilot AI review requested due to automatic review settings January 21, 2026 09:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a regression where the delete action was incorrectly showing when no files were selected in the trash bin. The fix adds early return guards to check if any resources are selected before evaluating visibility conditions.

Changes:

  • Added resource length validation in isVisible methods to prevent delete actions from appearing when no files are selected

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JammingBen JammingBen force-pushed the fix/duplicated-delete-action-in-trashbin branch from 35a1ccd to 13076d8 Compare January 21, 2026 09:23
@JammingBen JammingBen requested a review from kulmann January 21, 2026 09:43
@kulmann kulmann merged commit b3bf70c into main Jan 21, 2026
28 checks passed
@kulmann kulmann deleted the fix/duplicated-delete-action-in-trashbin branch January 21, 2026 12:38
@openclouders openclouders mentioned this pull request Jan 21, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants