diff --git a/src/components/inputs/multi-select/multi-select.component.tsx b/src/components/inputs/multi-select/multi-select.component.tsx index e227c330..26d3b3de 100644 --- a/src/components/inputs/multi-select/multi-select.component.tsx +++ b/src/components/inputs/multi-select/multi-select.component.tsx @@ -104,7 +104,7 @@ const MultiSelect: React.FC = ({ field, value, errors, warn initialSelectedItems={initiallySelectedQuestionItems} label={''} titleText={label} - key={counter} + key={field.id} itemToString={(item) => (item ? item.label : ' ')} disabled={field.isDisabled} invalid={errors.length > 0} @@ -118,10 +118,10 @@ const MultiSelect: React.FC = ({ field, value, errors, warn {field.questionOptions.answers?.map((value, index) => { return ( { handleSelectCheckbox(value); }}