summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2022-11-30 19:57:29 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-30 19:57:29 +0000
commitbfb01e6b207c03648acb766c7ef1155c0ca68ae1 (patch)
treef2b386bb1a65217b3e09b9af8515936815537662
parentd5146beba06356f2c344cb9c34759f841d4a4b22 (diff)
parent86c5b57717deadbb76ac8d7dc0be4e78425f26bf (diff)
Merge "SDNR GUI is unable to display values of fields with enum type from drop down"
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx6
1 files changed, 3 insertions, 3 deletions
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,