Fixed importing with parent document

This commit is contained in:
Jori Lallo
2017-10-21 19:20:18 -07:00
parent 30ad8f1ea6
commit 000e25be5e

View File

@ -40,11 +40,7 @@ class DropToImport extends Component {
text, text,
}; };
if (documentId) { if (documentId) data.parentDocument = documentId;
data.parentDocument = {
id: documentId,
};
}
let document = new Document(data); let document = new Document(data);
document = await document.save(); document = await document.save();