fix: collectionId and parentDocumentId now mutually exclusive in payload

closes #7110
This commit is contained in:
Tom Moor
2024-06-21 19:37:47 -04:00
parent 9e5d5c0347
commit f17ce9d50b

View File

@@ -159,7 +159,7 @@ function DataLoader({ match, children }: Props) {
}
const newDocument = await documents.create({
collectionId: document.collectionId,
collectionId: nested ? undefined : document.collectionId,
parentDocumentId: nested ? document.id : document.parentDocumentId,
title,
data: ProsemirrorHelper.getEmptyDocument(),