Skip to content

Commit

Permalink
🚸 Properly mark objecttype/objecttype version fields as required
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Mar 25, 2024
1 parent 1ba9556 commit e89d855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const LegacyConfigFields = ({index, name, formData, onChange}) => {
rawErrors={getFieldErrors(name, index, validationErrors, 'objecttype')}
errors={buildErrorsComponent('objecttype')}
displayLabel
required
>
<TextInput id="root_objecttype" name="objecttype" value={objecttype} onChange={onChange} />
</CustomFieldTemplate>
Expand All @@ -62,6 +63,7 @@ const LegacyConfigFields = ({index, name, formData, onChange}) => {
rawErrors={getFieldErrors(name, index, validationErrors, 'objecttypeVersion')}
errors={buildErrorsComponent('objecttypeVersion')}
displayLabel
required
>
<NumberInput
id="root_objecttypeVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const V2ConfigFields = ({index, name, formData, onChange}) => {
rawErrors={getFieldErrors(name, index, validationErrors, 'objecttype')}
errors={buildErrorsComponent('objecttype')}
displayLabel
required
>
{/* TODO: fallback to legacy UI if there are loading errors */}
<ObjectTypeSelect
Expand All @@ -84,6 +85,7 @@ const V2ConfigFields = ({index, name, formData, onChange}) => {
rawErrors={getFieldErrors(name, index, validationErrors, 'objecttypeVersion')}
errors={buildErrorsComponent('objecttypeVersion')}
displayLabel
required
>
{/* TODO: fallback to legacy UI if there are loading errors */}
<ObjectTypeVersionSelect
Expand Down

0 comments on commit e89d855

Please sign in to comment.