fix: unset active collection id when navigating away from a document (#7241)

This commit is contained in:
Hemachandar authored and GitHub committed 2024-07-15 17:53:33 -07:00
1 parent 8186e23d45
commit 78fd39a0fb
1 file changed
+4
+4
View File
@@ -193,6 +193,10 @@ class UiStore {
clearActiveDocument = (): void => {
this.activeDocumentId = undefined;
this.observingUserId = undefined;
// Unset when navigating away from a document (e.g. to another document, home, settings, etc.)
// Next document's onMount will set the right activeCollectionId.
this.activeCollectionId = undefined;
};
@action