From f3c2b329f51f517ed620a2947c488c778b84796d Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Mon, 23 Oct 2023 22:07:02 +0300 Subject: [PATCH] fix(form): fix render 0 when empty custom attributes --- src/pages/dataElements/form/DataElementFormFields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dataElements/form/DataElementFormFields.tsx b/src/pages/dataElements/form/DataElementFormFields.tsx index 6401e57f..dfa3f5da 100644 --- a/src/pages/dataElements/form/DataElementFormFields.tsx +++ b/src/pages/dataElements/form/DataElementFormFields.tsx @@ -205,7 +205,7 @@ export function DataElementFormFields() { - {customAttributes.data?.length && ( + {customAttributes.data?.length > 0 && ( {i18n.t('Custom attributes')}