From 6cf3b14c8d1f4a39a267cab3abc619f51440d230 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 16 Sep 2024 11:20:03 +0200 Subject: [PATCH] Switch fields --- .../ObjectAreaAnnotateModal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Modals/ObjectModals/ObjectAreaAnnotateModal/ObjectAreaAnnotateModal.tsx b/src/components/Modals/ObjectModals/ObjectAreaAnnotateModal/ObjectAreaAnnotateModal.tsx index 5520ecdf..f8055698 100644 --- a/src/components/Modals/ObjectModals/ObjectAreaAnnotateModal/ObjectAreaAnnotateModal.tsx +++ b/src/components/Modals/ObjectModals/ObjectAreaAnnotateModal/ObjectAreaAnnotateModal.tsx @@ -154,7 +154,7 @@ const InnerForm = ({
({ } defaultValue={ values.label && - values.group && { + values.location && { label: values.label, - value: values.group, + value: values.location, } } components={{ @@ -202,8 +202,8 @@ const InnerForm = ({ isLoading={areaTypesFetching} required onChange={() => { - setFieldValue('location', null) - setFieldTouched('location', false) + setFieldValue('group', null) + setFieldTouched('group', false) }} styles={{ menu: base => ({ @@ -221,7 +221,7 @@ const InnerForm = ({ key={JSON.stringify( areaGroupQueryKey + String(areaGroupsFetching) )} - name="location" + name="group" label="Gebiedsaanwijzinggroep" placeholder="Selecteer een gebiedsaanwijzinggroep" options={areaGroupOptions}