From 30dc56dc080ba547254ee4bac567082c5f05f25d Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Wed, 22 Nov 2023 17:29:25 +0100 Subject: [PATCH] fix(attributes): fix deselecting attribute --- src/pages/dataElements/form/CustomAttributes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dataElements/form/CustomAttributes.tsx b/src/pages/dataElements/form/CustomAttributes.tsx index 92539a68..4329151b 100644 --- a/src/pages/dataElements/form/CustomAttributes.tsx +++ b/src/pages/dataElements/form/CustomAttributes.tsx @@ -30,7 +30,7 @@ function CustomAttribute({ attribute, index }: CustomAttributeProps) { }) ) - if (required) { + if (!required) { options.unshift({ value: '', label: i18n.t('') }) }