From 000e25be5e7d025f37ec4b216c7cdea327275ab5 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sat, 21 Oct 2017 19:20:18 -0700 Subject: [PATCH] Fixed importing with parent document --- frontend/components/DropToImport/DropToImport.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/components/DropToImport/DropToImport.js b/frontend/components/DropToImport/DropToImport.js index 39924d48..8c1341f7 100644 --- a/frontend/components/DropToImport/DropToImport.js +++ b/frontend/components/DropToImport/DropToImport.js @@ -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();