From 927f9b36be4a1bd0841fed8ef939935ee79afdc9 Mon Sep 17 00:00:00 2001 From: Khavin Shankar Date: Mon, 8 Jul 2024 12:19:04 +0530 Subject: [PATCH] fixed cypress tests --- src/Components/Form/FormFields/Autocomplete.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Components/Form/FormFields/Autocomplete.tsx b/src/Components/Form/FormFields/Autocomplete.tsx index cde2a519db7..67b1224cddf 100644 --- a/src/Components/Form/FormFields/Autocomplete.tsx +++ b/src/Components/Form/FormFields/Autocomplete.tsx @@ -152,7 +152,7 @@ export const Autocomplete = (props: AutocompleteProps) => { > props.onChange(selection.value)} >
@@ -160,9 +160,7 @@ export const Autocomplete = (props: AutocompleteProps) => { - (value?.label || props.placeholder) ?? "Select" - } + displayValue={(value: any) => value?.label || ""} onChange={(event) => setQuery(event.target.value.toLowerCase())} onBlur={() => value && setQuery("")} autoComplete="off"