fix: multiple autocomplete rendering

This commit is contained in:
yassinedorbozgithub 2024-11-26 13:25:53 +01:00
parent d4c3e59e62
commit 638b405bb0

View File

@ -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}