diff --git a/src/pages/protected/DynamicObject/ObjectEdit/ObjectEdit.tsx b/src/pages/protected/DynamicObject/ObjectEdit/ObjectEdit.tsx index 811a12c4..32d6ed7e 100644 --- a/src/pages/protected/DynamicObject/ObjectEdit/ObjectEdit.tsx +++ b/src/pages/protected/DynamicObject/ObjectEdit/ObjectEdit.tsx @@ -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])