Skip to content

Build your personal knowledge base with Trilium Notes

feat(tree): avoid async

Elian Dorandec4dafba61c
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index c4d4ce0c22..f815edfc9e 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -1807,11 +1807,8 @@ function buildEnhanceTitle() {
return;
}
- const note = await froca.getNote(node.data.noteId, true);
-
- if (!note) {
- return;
- }
+ const note = froca.getNoteFromCache(node.data.noteId);
+ if (!note) return;
const activeNoteContext = appContext.tabManager.getActiveContext();