Skip to content

Commit

Permalink
fix intended use issue for readonly perms
Browse files Browse the repository at this point in the history
tried to render an object which is not possible as text.
  • Loading branch information
henrinie-nc committed Aug 28, 2024
1 parent 7b84973 commit 82a0061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/FormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const FormFieldInput = ({
case FieldTypeOptions.HIDDEN:
case FieldTypeOptions.FRACTIONAL:
case FieldTypeOptions.INTENDED_USE:
return value;
return value?.name ?? '-';

case FieldTypeOptions.REFERENCE_NUMBER:
return value ? <ExternalLink href={getReferenceNumberLink(value)} text={value} /> : null;
Expand Down

0 comments on commit 82a0061

Please sign in to comment.