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