mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
when resolving note path attempt to find one going through hoisted note
This commit is contained in:
@@ -807,7 +807,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
/** @let {FancytreeNode} */
|
||||
let parentNode = this.getNodesByNoteId('root')[0];
|
||||
|
||||
const resolvedNotePathSegments = (await treeService.resolveNotePathToSegments(notePath, logErrors))
|
||||
const resolvedNotePathSegments = (await treeService.resolveNotePathToSegments(notePath, this.hoistedNoteId, logErrors))
|
||||
.slice(1);
|
||||
|
||||
if (!resolvedNotePathSegments) {
|
||||
|
||||
@@ -22,6 +22,10 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
return this.tabContext && this.tabContext.notePath;
|
||||
}
|
||||
|
||||
get hoistedNoteId() {
|
||||
return this.tabContext && this.tabContext.hoistedNoteId;
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return !!this.note;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user