From 3ad9d3a6c0cea20f5a935422bc152f88c16637f1 Mon Sep 17 00:00:00 2001 From: Quentin Ruhier Date: Mon, 2 Dec 2024 09:21:10 +0100 Subject: [PATCH] refactor: remove unused keys --- .../response-format/simple/simple-numeric.jsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/widgets/component-new-edit/components/response-format/simple/simple-numeric.jsx b/src/widgets/component-new-edit/components/response-format/simple/simple-numeric.jsx index 4e816a823..0f1cc1883 100644 --- a/src/widgets/component-new-edit/components/response-format/simple/simple-numeric.jsx +++ b/src/widgets/component-new-edit/components/response-format/simple/simple-numeric.jsx @@ -71,15 +71,11 @@ function ResponseFormatDatatypeNumeric({ required // Convert string "true"/"false" to boolean true/false when storing in Redux form parse={value => value === 'true'} - // Convert boolean true/false to string "true"/"false" when displaying the form + // Convert true/false/undefined to string "true"/"false" when displaying the form format={value => (value === true ? 'true' : 'false')} > - - {Dictionary.yes} - - - {Dictionary.no} - + {Dictionary.yes} + {Dictionary.no} {isDynamicUnit ? (