Fixed parent.id => parentId

This commit is contained in:
Thaum Rystra
2024-03-26 09:58:01 +02:00
parent 0eb763dc0e
commit 352e89ee9a
13 changed files with 15 additions and 15 deletions

View File

@@ -188,7 +188,7 @@ export default {
const docName = this.doc.name;
let parentHref = '/docs';
if (this.doc.parent) {
const parent = Docs.findOne({ _id: this.doc.parent.id });
const parent = Docs.findOne({ _id: this.doc.parentId });
parentHref = parent?.href || parentHref;
}
softRemoveDoc.call({ _id }, (error) => {