fix: Guard empty documentStructure
This commit is contained in:
@ -442,7 +442,10 @@ Collection.prototype.getDocumentParents = function (
|
||||
});
|
||||
};
|
||||
|
||||
loopChildren(this.documentStructure);
|
||||
if (this.documentStructure) {
|
||||
loopChildren(this.documentStructure);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user