diff options
author | Dan Timoney <dtimoney@att.com> | 2022-11-30 19:57:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-11-30 19:57:29 +0000 |
commit | bfb01e6b207c03648acb766c7ef1155c0ca68ae1 (patch) | |
tree | f2b386bb1a65217b3e09b9af8515936815537662 /sdnr | |
parent | d5146beba06356f2c344cb9c34759f841d4a4b22 (diff) | |
parent | 86c5b57717deadbb76ac8d7dc0be4e78425f26bf (diff) |
Merge "SDNR GUI is unable to display values of fields with enum type from drop down"
Diffstat (limited to 'sdnr')
-rw-r--r-- | sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx | 6 |
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, |