Skip to content

Conversation

@allison-truhlar
Copy link
Collaborator

@allison-truhlar allison-truhlar commented Nov 24, 2025

@krokicki
Recently viewed folders appeared to be coming back correctly from the /preference endpoint, but were disappearing from the dashboard. In a previous PR, I introduced a bug by swapping the filePath and fspName parameters in the function that updates the recently viewed folders. This resulted in the frontend logic being unable to form and display the folder links because the fspNames provided from the backend were incorrect (they were actually filePaths). So each time you navigated to a new folder that was added to recently viewed folders, it effectively deleted one recently viewed folder from the display in the dashboard, until all the data was bad and the display was empty.

This PR also adds a fix to address a linter warning that filePath or fspName could be undefined when passed to updateRecentlyViewedFolders.

To test this fix, you will need to delete any existing recentlyViewedFolders in your database (specifically if you used the database at all while the bug existed, over the past week or so):
sqlite3 fileglancer.db "DELETE FROM user_preferences WHERE key='recentlyViewedFolders';"

Copy link
Member

@neomorphic neomorphic left a comment

Choose a reason for hiding this comment

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

This is now working as expected and I can see recently viewed paths again.

@allison-truhlar allison-truhlar merged commit 953a893 into main Nov 24, 2025
7 checks passed
@allison-truhlar allison-truhlar deleted the fix-recently-viewed-folders branch November 24, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants