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}