mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
fix: unset active collection id when navigating away from a document (#7241)
This commit is contained in:
1 parent
8186e23d45
commit
78fd39a0fb
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user