Skip to content

Commit

Permalink
Merge branch 'feature/AB#19680' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Sep 16, 2024
2 parents 8ef54f9 + 6cf3b14 commit ab711c8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const InnerForm = <TData extends Values>({
<div className="space-y-4">
<div>
<DynamicObjectSearch
fieldName="group"
fieldName="location"
filterType={['werkingsgebied']}
status="all"
label="Gebiedengroep"
Expand All @@ -166,9 +166,9 @@ const InnerForm = <TData extends Values>({
}
defaultValue={
values.label &&
values.group && {
values.location && {
label: values.label,
value: values.group,
value: values.location,
}
}
components={{
Expand Down Expand Up @@ -202,8 +202,8 @@ const InnerForm = <TData extends Values>({
isLoading={areaTypesFetching}
required
onChange={() => {
setFieldValue('location', null)
setFieldTouched('location', false)
setFieldValue('group', null)
setFieldTouched('group', false)
}}
styles={{
menu: base => ({
Expand All @@ -221,7 +221,7 @@ const InnerForm = <TData extends Values>({
key={JSON.stringify(
areaGroupQueryKey + String(areaGroupsFetching)
)}
name="location"
name="group"
label="Gebiedsaanwijzinggroep"
placeholder="Selecteer een gebiedsaanwijzinggroep"
options={areaGroupOptions}
Expand Down

0 comments on commit ab711c8

Please sign in to comment.