mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
note path might not always include root explicitly
This commit is contained in:
@@ -116,7 +116,7 @@ async function activateNote(notePath, newNote) {
|
||||
|
||||
const hoistedNoteId = await hoistedNoteService.getHoistedNoteId();
|
||||
|
||||
if (!notePath.includes(hoistedNoteId)) {
|
||||
if (hoistedNoteId !== 'root' && !notePath.includes(hoistedNoteId)) {
|
||||
if (!await confirmDialog.confirm("Requested note is outside of hoisted note subtree. Do you want to unhoist?")) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user