Skip to content

Commit

Permalink
fix(form): fix render 0 when empty custom attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo authored and Mohammer5 committed Oct 25, 2023
1 parent 7e5c907 commit 92fb57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dataElements/form/DataElementFormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function DataElementFormFields() {
</StandardFormField>
</StandardFormSection>

{customAttributes.data?.length && (
{customAttributes.data?.length > 0 && (
<StandardFormSection>
<StandardFormSectionTitle>
{i18n.t('Custom attributes')}
Expand Down

0 comments on commit 92fb57a

Please sign in to comment.