Merge pull request #1113 from Hexastack/1112-bug---some-labels-do-not-show-up-anymore

fix(frontend): resolve label updates
This commit is contained in:
Med Marrouchi
2025-06-09 11:19:19 +01:00
committed by GitHub

View File

@@ -52,12 +52,15 @@ const AutoCompleteSelect = <
FreeSolo extends boolean | undefined = false,
>(
{
label,
value,
options = [],
idKey = "id",
labelKey,
multiple,
onSearch,
error,
helperText,
isOptionEqualToValue = (option, value) =>
option?.[idKey] === value?.[idKey],
getOptionLabel = (option) => option?.[String(labelKey)] || option?.[idKey],
@@ -154,7 +157,10 @@ const AutoCompleteSelect = <
renderInput={(props) => (
<Input
{...props}
label={label}
onChange={(e) => handleSearch(e.target.value)}
error={error}
helperText={helperText}
InputProps={{
...props.InputProps,
endAdornment: (