mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 01:23:57 +08:00
fix consistency checks
This commit is contained in:
parent
3fa3e912a4
commit
3bafc396fc
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ class ConsistencyChecks {
|
|||
childToParents[childNoteId].push(parentNoteId);
|
||||
}
|
||||
|
||||
function checkTreeCycle(noteId, path) {
|
||||
const checkTreeCycle = (noteId, path) => {
|
||||
if (noteId === 'root') {
|
||||
return;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ class ConsistencyChecks {
|
|||
checkTreeCycle(parentNoteId, newPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const noteIds = Object.keys(childToParents);
|
||||
|
||||
|
|
Loading…
Reference in a new issue