mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
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:
commit
bb901d9d7e
@ -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: (
|
||||
|
Loading…
Reference in New Issue
Block a user