Merge pull request #348 from jorilallo/jori/fix-import-parent

Fixed importing with parent document
This commit is contained in:
Jori Lallo
2017-10-21 19:21:02 -07:00
committed by GitHub

View File

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