From 86c5b57717deadbb76ac8d7dc0be4e78425f26bf Mon Sep 17 00:00:00 2001
From: Projit Roy <projitr@aarnanetworks.com>
Date: Thu, 10 Nov 2022 11:06:09 +0530
Subject: SDNR GUI is unable to display values of fields with enum type from
 drop down

Issue-ID: CCSDK-3790
Signed-off-by: Projit Roy <projitr@aarnanetworks.com>
Change-Id: I34f6ad1965e21bcdfeb8648f8d979cbf0583d023
---
 .../apps/configurationApp/src/components/uiElementSelection.tsx     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx')

diff --git a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
index 7ca9ae36b..fdf803419 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
+++ b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
@@ -28,8 +28,8 @@ export const UiElementSelection = (props: selectionProps) => {
     const element = props.value as ViewElementSelection;
 
     let error = "";
-    const value = String(props.inputValue).toLowerCase();
-    if (element.mandatory && !!value) {
+    const value = String(props.inputValue);
+    if (element.mandatory && Boolean(!value)) {
         error = "Error";
     }
 
@@ -42,7 +42,7 @@ export const UiElementSelection = (props: selectionProps) => {
                 onChange={(e) => { props.onChange(e.target.value as string) }}
                 readOnly={props.readOnly}
                 disabled={props.disabled}
-                value={value.toString().toLowerCase()}
+                value={value.toString()}
                 aria-label={element.label+'-selection'}
                 inputProps={{
                     name: element.id,
-- 
cgit 1.2.3-korg

