From ca4d85cf197b5a2c9bb49f345b5e95f3a60bf2e1 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 13 Apr 2024 22:32:52 -0400 Subject: [PATCH] fix: Allow duplicating a draft as a published doc --- app/components/DuplicateDialog.tsx | 42 ++++++++++++++++-------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/app/components/DuplicateDialog.tsx b/app/components/DuplicateDialog.tsx index 95785ec44..91126d394 100644 --- a/app/components/DuplicateDialog.tsx +++ b/app/components/DuplicateDialog.tsx @@ -64,26 +64,30 @@ function DuplicateDialog({ document, onSubmit }: Props) { maxLength={DocumentValidation.maxTitleLength} defaultValue={defaultTitle} /> - {document.publishedAt && !document.isTemplate && ( + {!document.isTemplate && ( <> - - - - - - + {document.collectionId && ( + + + + )} + {document.publishedAt && ( + + + + )} )}