mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fix
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user