Skip to content

fix(notes): reset search when switching vaults - #939

Merged
antonreshetov merged 1 commit into
mainfrom
fix/notes-search-vault-switch
Sep 18, 2026
Merged

antonreshetov merged 1 commit into
mainfrom
fix/notes-search-vault-switch

Conversation

@antonreshetov

Copy link
Copy Markdown
Member

Switching vaults while searching Notes retained the search query and the selection snapshot from the previous vault. Clearing the search could then restore a folder and note belonging to that previous vault, leaving an empty list and a content loading error.

Reset the Notes search query, results, selection index, and pre-search snapshot when resetting the Notes space for a vault switch.

Validation: regression coverage for switching vaults, clearing search, and restoring a subsequent search in the new vault; Notes initialization tests; scoped ESLint. All passed. The application UI was not manually tested.

@antonreshetov antonreshetov self-assigned this Sep 18, 2026
@antonreshetov
antonreshetov merged commit 12ccbcb into main Sep 18, 2026
@antonreshetov
antonreshetov deleted the fix/notes-search-vault-switch branch September 18, 2026 02:15
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