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
hoisting fixes
zadam35d5036aaae7
diff --git a/src/public/app/services/tab_manager.js b/src/public/app/services/tab_manager.jsindex c4159e82d5..db0bfa2c38 100644--- a/src/public/app/services/tab_manager.js+++ b/src/public/app/services/tab_manager.js@@ -336,4 +336,8 @@ export default class TabManager extends Component {this.triggerCommand('openInWindow', {notePath});}++ hoistedNoteChangedEvent() {+ this.tabsUpdate.scheduleUpdate();+ }}diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.jsindex d3718249fc..d29e2ee8a8 100644--- a/src/public/app/services/tree.js+++ b/src/public/app/services/tree.js@@ -37,8 +37,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {path.push('root');}- const hoistedNoteId = hoistedNoteService.getHoistedNoteId();-const effectivePath = [];let childNoteId = null;let i = 0;@@ -91,10 +89,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {effectivePath.push(parentNoteId);childNoteId = parentNoteId;-- if (parentNoteId === hoistedNoteId) {- break;- }}return effectivePath.reverse();diff --git a/src/routes/api/autocomplete.js b/src/routes/api/autocomplete.jsindex ecdea6d0c8..037a78b1d8 100644--- a/src/routes/api/autocomplete.js+++ b/src/routes/api/autocomplete.js@@ -38,7 +38,7 @@ function getRecentNotes(activeNoteId) {const hoistedNoteId = cls.getHoistedNoteId();if (hoistedNoteId !== 'root') {extraCondition = `AND recent_notes.notePath LIKE ?`;- params.push(hoistedNoteId + '%');+ params.push('%' + hoistedNoteId + '%');}const recentNotes = repository.getEntities(`