From 37634a32f13dae713c2e41015d5ddcae4a6b00e1 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Mon, 7 Oct 2024 17:04:40 +0100 Subject: [PATCH] fix: solve issue with sms --- .../modules-operations/msd/pages/sims-creation/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/modules-operations/msd/pages/sims-creation/index.jsx b/src/packages/modules-operations/msd/pages/sims-creation/index.jsx index 0ce702ca2..925be1674 100644 --- a/src/packages/modules-operations/msd/pages/sims-creation/index.jsx +++ b/src/packages/modules-operations/msd/pages/sims-creation/index.jsx @@ -95,19 +95,19 @@ const SimsCreation = ({ e.stopPropagation(); setSaving(true); - const idParent = idParent || idParentProp; + const idParentToSave = idParent || idParentProp; const rubrics = Object.values(sims).map(convertRubric); - const sims = { + const simsToSave = { id: mode !== DUPLICATE ? simsProp.id : '', labelLg1: mode !== DUPLICATE ? simsProp.labelLg1 : '', labelLg2: mode !== DUPLICATE ? simsProp.labelLg2 : '', - [getParentIdName(parentType)]: idParent, + [getParentIdName(parentType)]: idParentToSave, created: mode !== DUPLICATE ? simsProp.created : '', rubrics, }; - onSubmit(sims, (id) => { + onSubmit(simsToSave, (id) => { setSaving(false); goBack(`/operations/sims/${id}`); });