fix(ControlledAutocomplete): use option value as option key

This commit is contained in:
Ali BARIN
2022-12-04 21:16:16 +01:00
parent bd2f2cbf64
commit e451dd2262
2 changed files with 6 additions and 1 deletions

View File

@@ -96,6 +96,11 @@ function ControlledAutocomplete(
}} }}
ref={ref} ref={ref}
data-test={`${name}-autocomplete`} data-test={`${name}-autocomplete`}
renderOption={(optionProps, option) => (
<li {...optionProps} key={option.value.toString()}>
{option.label}
</li>
)}
/> />
<FormHelperText <FormHelperText

View File

@@ -116,7 +116,7 @@ export default function Editor(props: EditorProps): React.ReactElement {
gap={1} gap={1}
> >
{flow?.steps?.map((step, index, steps) => ( {flow?.steps?.map((step, index, steps) => (
<React.Fragment key={`${step}-${index}`}> <React.Fragment key={`${step.id}-${index}`}>
<FlowStep <FlowStep
key={step.id} key={step.id}
step={step} step={step}