fix(ControlledAutocomplete): use option value as option key
This commit is contained in:
@@ -96,6 +96,11 @@ function ControlledAutocomplete(
|
||||
}}
|
||||
ref={ref}
|
||||
data-test={`${name}-autocomplete`}
|
||||
renderOption={(optionProps, option) => (
|
||||
<li {...optionProps} key={option.value.toString()}>
|
||||
{option.label}
|
||||
</li>
|
||||
)}
|
||||
/>
|
||||
|
||||
<FormHelperText
|
||||
|
@@ -116,7 +116,7 @@ export default function Editor(props: EditorProps): React.ReactElement {
|
||||
gap={1}
|
||||
>
|
||||
{flow?.steps?.map((step, index, steps) => (
|
||||
<React.Fragment key={`${step}-${index}`}>
|
||||
<React.Fragment key={`${step.id}-${index}`}>
|
||||
<FlowStep
|
||||
key={step.id}
|
||||
step={step}
|
||||
|
Reference in New Issue
Block a user