From 00dcd9a55042bea6b380f57786460d0ab8d55f60 Mon Sep 17 00:00:00 2001 From: mrCherry97 Date: Thu, 5 Oct 2023 11:24:08 +0200 Subject: [PATCH] adjust changes --- src/shared/ResourceForm/inputs/ComboboxInput.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/shared/ResourceForm/inputs/ComboboxInput.js b/src/shared/ResourceForm/inputs/ComboboxInput.js index b0db1f210b..d3e3b4ed1b 100644 --- a/src/shared/ResourceForm/inputs/ComboboxInput.js +++ b/src/shared/ResourceForm/inputs/ComboboxInput.js @@ -1,8 +1,5 @@ import classnames from 'classnames'; -import { - ComboBox as UI5ComboBox, - ComboBoxItem, -} from '@ui5/webcomponents-react'; +import { ComboBox, ComboBoxItem } from '@ui5/webcomponents-react'; export function ComboboxInput({ value, @@ -24,7 +21,7 @@ export function ComboboxInput({ className, )} > - { const selectedOption = options.find( - // eslint-disable-next-line eqeqeq - o => o.text == event.target.value, + o => o.text === event.target.value, ); if (!selectedOption) return; if (onSelectionChange) { @@ -47,8 +43,8 @@ export function ComboboxInput({ } }} value={ - // eslint-disable-next-line eqeqeq - options.find(o => o.key == value || o.key == selectedKey)?.text ?? '' + options.find(o => o.key === value || o.key === selectedKey)?.text ?? + '' } placeholder={placeholder} {...props} @@ -56,7 +52,7 @@ export function ComboboxInput({ {options.map(option => ( ))} - + ); }