Skip to content

Commit

Permalink
Merge branch 'feature/AB#20539' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Dec 4, 2024
2 parents a63f956 + 8d1c220 commit b70394d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/protected/DynamicObject/ObjectEdit/ObjectEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ const ObjectEdit = ({ model }: ObjectEditProps) => {
return (objectData[field] = object?.[field as keyof typeof data])
})

if (
fields.includes('Ambtsgebied') &&
object?.Werkingsgebied_Code === null
) {
objectData['Ambtsgebied'] = ['true']
}

return objectData
}, [object, model.dynamicSections])

Expand Down

0 comments on commit b70394d

Please sign in to comment.