mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
fixes to delete notifications
This commit is contained in:
@@ -98,7 +98,14 @@ async function getNodeFromPath(notePath, expand = false, expandOpts = {}) {
|
||||
const hoistedNoteId = await hoistedNoteService.getHoistedNoteId();
|
||||
let parentNode = null;
|
||||
|
||||
for (const childNoteId of await getRunPath(notePath)) {
|
||||
const runPath = await getRunPath(notePath);
|
||||
|
||||
if (!runPath) {
|
||||
console.error("Could not find run path for notePath:", notePath);
|
||||
return;
|
||||
}
|
||||
|
||||
for (const childNoteId of runPath) {
|
||||
if (childNoteId === hoistedNoteId) {
|
||||
// there must be exactly one node with given hoistedNoteId
|
||||
parentNode = getNodesByNoteId(childNoteId)[0];
|
||||
|
||||
Reference in New Issue
Block a user