From e89d8553bf53c5c0aac9b5c97e7d7367e334cc41 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Mon, 25 Mar 2024 22:40:34 +0100 Subject: [PATCH] :children_crossing: Properly mark objecttype/objecttype version fields as required --- .../form_design/registrations/objectsapi/LegacyConfigFields.js | 2 ++ .../form_design/registrations/objectsapi/V2ConfigFields.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/openforms/js/components/admin/form_design/registrations/objectsapi/LegacyConfigFields.js b/src/openforms/js/components/admin/form_design/registrations/objectsapi/LegacyConfigFields.js index 53e04e8932..c3bfad01a9 100644 --- a/src/openforms/js/components/admin/form_design/registrations/objectsapi/LegacyConfigFields.js +++ b/src/openforms/js/components/admin/form_design/registrations/objectsapi/LegacyConfigFields.js @@ -46,6 +46,7 @@ const LegacyConfigFields = ({index, name, formData, onChange}) => { rawErrors={getFieldErrors(name, index, validationErrors, 'objecttype')} errors={buildErrorsComponent('objecttype')} displayLabel + required > @@ -62,6 +63,7 @@ const LegacyConfigFields = ({index, name, formData, onChange}) => { rawErrors={getFieldErrors(name, index, validationErrors, 'objecttypeVersion')} errors={buildErrorsComponent('objecttypeVersion')} displayLabel + required > { rawErrors={getFieldErrors(name, index, validationErrors, 'objecttype')} errors={buildErrorsComponent('objecttype')} displayLabel + required > {/* TODO: fallback to legacy UI if there are loading errors */} { rawErrors={getFieldErrors(name, index, validationErrors, 'objecttypeVersion')} errors={buildErrorsComponent('objecttypeVersion')} displayLabel + required > {/* TODO: fallback to legacy UI if there are loading errors */}