Fixed importing with parent document
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user