mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix consistency checks
This commit is contained in:
parent
3fa3e912a4
commit
3bafc396fc
@ -51,7 +51,7 @@ class ConsistencyChecks {
|
|||||||
childToParents[childNoteId].push(parentNoteId);
|
childToParents[childNoteId].push(parentNoteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkTreeCycle(noteId, path) {
|
const checkTreeCycle = (noteId, path) => {
|
||||||
if (noteId === 'root') {
|
if (noteId === 'root') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@ class ConsistencyChecks {
|
|||||||
checkTreeCycle(parentNoteId, newPath);
|
checkTreeCycle(parentNoteId, newPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const noteIds = Object.keys(childToParents);
|
const noteIds = Object.keys(childToParents);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user