add key for controladapter CustomSelect too

This commit is contained in:
Mary Hipp 2024-03-13 12:03:13 -04:00 committed by psychedelicious
parent b64a693f16
commit 99d2099ccd

View File

@ -52,7 +52,13 @@ const ParamControlAdapterModel = ({ id }: ParamControlAdapterModelProps) => {
return (
<FormControl isDisabled={!items.length || !isEnabled} isInvalid={!selectedItem || !items.length}>
<CustomSelect selectedItem={selectedItem} placeholder={placeholder} items={items} onChange={onChange} />
<CustomSelect
key={items.length}
selectedItem={selectedItem}
placeholder={placeholder}
items={items}
onChange={onChange}
/>
</FormControl>
);
};