Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(tree): eliminate race condition in activeVisible restore in refresh()
Kevin Leutzingerc2c5624d193d
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.tsindex 717366d09d..eaf0ca336d 100644--- a/apps/client/src/widgets/note_tree.ts+++ b/apps/client/src/widgets/note_tree.ts@@ -1177,10 +1177,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {}if (!this.treeScrollFollowNavigation) {- const prevActiveVisible = this.tree.options.activeVisible;this.tree.options.activeVisible = false;setTimeout(() => {- this.tree.options.activeVisible = prevActiveVisible;+ this.tree.options.activeVisible = true;}, 0);}