From 2cc8801cc80b12586ad58f54e744f0bf0e177593 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Wed, 22 Nov 2023 17:35:01 +0100 Subject: [PATCH] fix(attributes): fix deselecting attribute (#361) --- 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('') }) }