fix consistency checks

This commit is contained in:
zadam 2020-03-14 13:13:27 +01:00
parent 3fa3e912a4
commit 3bafc396fc

View file

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