From f17ce9d50bffeac8028e77e292de23380cc199a5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 21 Jun 2024 19:37:47 -0400 Subject: [PATCH] fix: collectionId and parentDocumentId now mutually exclusive in payload closes #7110 --- app/scenes/Document/components/DataLoader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/components/DataLoader.tsx b/app/scenes/Document/components/DataLoader.tsx index 2dd92c9171..72b222ac80 100644 --- a/app/scenes/Document/components/DataLoader.tsx +++ b/app/scenes/Document/components/DataLoader.tsx @@ -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(),