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