Skip to content

Build your personal knowledge base with Trilium Notes

fix note hoisting

zadam2c7eb723d5ec
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.js
index 60acf90010..aa220371a1 100644
--- a/src/public/javascripts/services/entrypoints.js
+++ b/src/public/javascripts/services/entrypoints.js
@@ -84,12 +84,8 @@ export default class Entrypoints extends Component {
if (note.noteId === hoistedNoteId) {
hoistedNoteService.unhoist();
}
- else {
- const note = await treeCache.getNote(note.noteId);
-
- if (note.type !== 'search') {
- hoistedNoteService.setHoistedNoteId(note.noteId);
- }
+ else if (note.type !== 'search') {
+ hoistedNoteService.setHoistedNoteId(note.noteId);
}
}