This commit is contained in:
azivner
2017-11-26 21:00:42 -05:00
parent 9fcafe44d5
commit b4e6245f7b
2 changed files with 6 additions and 1 deletions

View File

@@ -180,6 +180,11 @@ const noteTree = (function() {
if (childNoteId !== null) {
const parents = childToParents[childNoteId];
if (!parents) {
console.error("No parents found for " + childNoteId);
return;
}
if (parentNoteId === null || !parents.includes(parentNoteId)) {
console.log("Did not find parent " + parentNoteId + " for child " + childNoteId);