From 55f372b415520433abff6bc2ee193c43906ff012 Mon Sep 17 00:00:00 2001 From: Stanley Pageot Date: Thu, 10 Mar 2022 07:43:40 -0800 Subject: [PATCH] fix: readjust order of split --- src/components/forms/SplitUnitForm.js | 48 +++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/components/forms/SplitUnitForm.js b/src/components/forms/SplitUnitForm.js index e942650b..060478bb 100644 --- a/src/components/forms/SplitUnitForm.js +++ b/src/components/forms/SplitUnitForm.js @@ -275,33 +275,31 @@ const SplitUnitForm = ({ onClose, record }) => { - + - + onChange={selectedOptions => setData(prevData => { const newData = [...prevData]; - newData[index].inCountryJurisdictionOfOwner = - value; + newData[index].countryJurisdictionOfOwner = + selectedOptions[0].value; return newData; }) } @@ -312,31 +310,33 @@ const SplitUnitForm = ({ onClose, record }) => { - + -