Skip to content

Conversation

@pedrolamas
Copy link
Member

Will check get the root of the deleted folder and if the current path includes it, it resets to the parent path.

Fixes #1764

@pedrolamas pedrolamas added this to the 1.36.1 milestone Dec 15, 2025
@pedrolamas pedrolamas requested a review from Copilot December 15, 2025 19:23
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Dec 15, 2025
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 issue #1764 by resetting the current directory path when the displayed folder (or its parent) is deleted, preventing users from being stuck viewing a non-existent directory.

  • Added type safety with TypeScript annotations to setCurrentPath mutation and updateCurrentPathByRoot action
  • Enhanced notifyDeleteDir action to detect when the current view path matches the deleted folder or is within it
  • Automatically navigates to the parent directory when current location is deleted

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/store/files/mutations.ts Added type annotation to setCurrentPath mutation for improved type safety
src/store/files/actions.ts Added logic in notifyDeleteDir to reset current path to parent when viewing deleted folder; added type annotations to payload parameters

@pedrolamas pedrolamas merged commit c77b649 into fluidd-core:develop Dec 15, 2025
10 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1764 branch December 15, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleted directory navigation issue

1 participant