From 30cefb6529fba1d17af9c1a99dec158bad742593 Mon Sep 17 00:00:00 2001 From: abilpraju-aot Date: Mon, 14 Oct 2024 08:46:51 -0700 Subject: [PATCH] updated payload of name --- forms-flow-web/src/components/Form/Item/Edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms-flow-web/src/components/Form/Item/Edit.js b/forms-flow-web/src/components/Form/Item/Edit.js index 310ece3e20..a7247279be 100644 --- a/forms-flow-web/src/components/Form/Item/Edit.js +++ b/forms-flow-web/src/components/Form/Item/Edit.js @@ -508,10 +508,10 @@ const Edit = React.memo(() => { ); const newPathAndName = - "duplicate-version-" + Math.random().toString(16).slice(9); + "duplicate-version-" + Math.random().toString(16).slice(9); newFormData.path = newPathAndName; newFormData.title = form.title; - newFormData.name = form.title; + newFormData.name = newPathAndName; newFormData.componentChanged = true; delete newFormData.machineName; delete newFormData.parentFormId;