Skip to content

Commit

Permalink
Merge pull request #3296 from bcgov/fix-undefined-project-labels
Browse files Browse the repository at this point in the history
fix: undefined project labels
  • Loading branch information
rafasdc authored May 23, 2024
2 parents 5db2a45 + 62ea6bd commit bf817fc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const ProjectFieldTemplate: React.FC<FieldTemplateProps> = ({
children,
uiSchema,
}) => {
const uiTitle = `${uiSchema?.['ui:label'] ?? uiSchema?.['ui:title']}`;
const uiTitle =
uiSchema?.['ui:label'] || uiSchema?.['ui:title']
? `${uiSchema?.['ui:label'] ?? uiSchema?.['ui:title']}`
: null;
const hidden = uiSchema?.['ui:widget'] === 'HiddenWidget' || false;
return (
<>
Expand Down

0 comments on commit bf817fc

Please sign in to comment.