Skip to content

Fix bookmarks history 1383#1460

Open
emariam22 wants to merge 3 commits into
ShelterTechSF:masterfrom
emariam22:fix-bookmarks-history-1383
Open

Fix bookmarks history 1383#1460
emariam22 wants to merge 3 commits into
ShelterTechSF:masterfrom
emariam22:fix-bookmarks-history-1383

Conversation

@emariam22
Copy link
Copy Markdown

Summary

Fixes the bookmark modal reopening with stale folder state.

Root Cause

NavigatorDashboard opened the bookmark menu with setBookmarksMenuOpen(true), but did not pass which folder was clicked. BookmarksMenu relied on its own activeFolder state, so it could reopen showing the previously selected folder instead of the folder the user clicked.

Fix

  • Added initialBookmarkFolderId state in App.tsx
  • Updated setBookmarksMenuOpen to accept an optional folderId
  • Passed the selected folder id from NavigatorDashboard
  • Passed initialFolderId into BookmarksMenu
  • Synced activeFolder with initialFolderId when the menu opens

Testing

Verified through code inspection and local build. This change ensures the bookmark modal receives the clicked folder id instead of relying only on stale internal state.

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.

1 participant