mirror of
https://github.com/hexastack/hexabot
synced 2024-12-02 09:05:06 +00:00
fix: multiple autocomplete rendering
This commit is contained in:
parent
d4c3e59e62
commit
638b405bb0
@ -121,7 +121,7 @@ const NlpPatternSelect = (
|
||||
ref={ref}
|
||||
size="medium"
|
||||
disabled={options.length === 0}
|
||||
defaultValue={defaultValue}
|
||||
value={defaultValue}
|
||||
multiple={true}
|
||||
options={options}
|
||||
onChange={handleNlpEntityChange}
|
||||
@ -183,7 +183,7 @@ const NlpPatternSelect = (
|
||||
return (
|
||||
<Autocomplete
|
||||
size="small"
|
||||
defaultValue={selectedId}
|
||||
value={selectedId}
|
||||
options={[id].concat(values)}
|
||||
multiple={false}
|
||||
key={key}
|
||||
|
Loading…
Reference in New Issue
Block a user