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