Skip to content

Commit

Permalink
Merge pull request #59 from targerian1999/main
Browse files Browse the repository at this point in the history
Fix array deletion
  • Loading branch information
vantezzen authored Feb 29, 2024
2 parents ebac300 + 6b4cf16 commit a24db0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/auto-form/fields/array.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function AutoFormArray({
<AccordionTrigger>{title}</AccordionTrigger>
<AccordionContent>
{fields.map((_field, index) => {
const key = [...path, index.toString()].join(".");
const key = _field.id;
return (
<div className="mt-4 flex flex-col" key={`${key}`}>
<AutoFormObject
Expand Down

0 comments on commit a24db0b

Please sign in to comment.