mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
note path might not always include root explicitly
This commit is contained in:
parent
841420360e
commit
5b6d15acb3
@ -45,7 +45,7 @@
|
||||
"ini": "1.3.5",
|
||||
"jimp": "0.6.0",
|
||||
"mime-types": "^2.1.21",
|
||||
"moment": "2.22.2",
|
||||
"moment": "2.23.0",
|
||||
"multer": "1.4.1",
|
||||
"open": "0.0.5",
|
||||
"rand-token": "0.4.0",
|
||||
@ -69,7 +69,7 @@
|
||||
"devtron": "1.4.0",
|
||||
"electron": "4.0.0-beta.9",
|
||||
"electron-compile": "6.4.3",
|
||||
"electron-packager": "12.2.0",
|
||||
"electron-packager": "13.0.1",
|
||||
"electron-rebuild": "1.8.2",
|
||||
"lorem-ipsum": "1.0.6",
|
||||
"tape": "4.9.1",
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user