Skip to content

Commit

Permalink
AB#20539
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Dec 4, 2024
1 parent 4787356 commit 8d1c220
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
@@ -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])

0 comments on commit 8d1c220

Please sign in to comment.