From f7c7f69127e31a893ef744f4d8188ce0ec1fd62b Mon Sep 17 00:00:00 2001 From: Nikita Date: Mon, 9 Feb 2026 17:46:20 +0200 Subject: [PATCH] fix: preserve draft edits when duplicating posts --- .../src/app/(main)/questions/create/[content_type]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front_end/src/app/(main)/questions/create/[content_type]/page.tsx b/front_end/src/app/(main)/questions/create/[content_type]/page.tsx index b5ff7212cf..cc4e6a2f3f 100644 --- a/front_end/src/app/(main)/questions/create/[content_type]/page.tsx +++ b/front_end/src/app/(main)/questions/create/[content_type]/page.tsx @@ -67,7 +67,9 @@ export default async function QuestionCreator(props: Props) { ? communitiesResponse.results[0] : undefined; - const shouldUseDraftValue = mode === "create" && isNil(post); + // When mode is "create", always use draft values to persist edits + // This handles both new posts and duplicated posts + const shouldUseDraftValue = mode === "create"; const componentProps = { post,