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}
|
ref={ref}
|
||||||
size="medium"
|
size="medium"
|
||||||
disabled={options.length === 0}
|
disabled={options.length === 0}
|
||||||
defaultValue={defaultValue}
|
value={defaultValue}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
options={options}
|
options={options}
|
||||||
onChange={handleNlpEntityChange}
|
onChange={handleNlpEntityChange}
|
||||||
@ -183,7 +183,7 @@ const NlpPatternSelect = (
|
|||||||
return (
|
return (
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
size="small"
|
size="small"
|
||||||
defaultValue={selectedId}
|
value={selectedId}
|
||||||
options={[id].concat(values)}
|
options={[id].concat(values)}
|
||||||
multiple={false}
|
multiple={false}
|
||||||
key={key}
|
key={key}
|
||||||
|
Loading…
Reference in New Issue
Block a user