note path might not always include root explicitly

This commit is contained in:
azivner
2018-12-16 10:41:47 +01:00
parent 841420360e
commit 5b6d15acb3
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}