From 099b6423eff0527f49b71b86093a4bceda4f1f2a Mon Sep 17 00:00:00 2001 From: Yashwin Date: Mon, 29 Jun 2026 17:01:11 +0530 Subject: [PATCH] fix: ensure workflow_definition_id is set to undefined when falsy during document creation --- src/pages/tenant/CreateDocument.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/tenant/CreateDocument.tsx b/src/pages/tenant/CreateDocument.tsx index 24b5f97..7775de5 100644 --- a/src/pages/tenant/CreateDocument.tsx +++ b/src/pages/tenant/CreateDocument.tsx @@ -339,7 +339,7 @@ const CreateDocument = (): ReactElement => { .module_id, source_module_id: data.selectedModuleId, source_record_id: data.source_record_id?.trim() || undefined, - workflow_definition_id: data.workflow_definition_id, + workflow_definition_id: data.workflow_definition_id || undefined, sections: data.sections?.map((s, i) => ({ title: s.title, content: s.content,