Skip to content

Commit

Permalink
ignore errors in FieldArray
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Jun 6, 2024
1 parent 208ab2f commit c4bd217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/FormBuilder/fields/FieldArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const FieldArray = withConditional<FieldArrayFieldProps>(
return (
<div className="w-full">
<div className="mr-10">
{/* @ts-expect-error */}
<DragDropContext onDragEnd={handleDrag}>
<ul>
<StrictModeDroppable droppableId={`${field.name}-items`}>
Expand All @@ -131,6 +132,7 @@ export const FieldArray = withConditional<FieldArrayFieldProps>(
// eslint-disable-next-line no-underscore-dangle
if (rhfField._destroy) return null;
return (
// @ts-expect-error
<Draggable
key={`${field.name}[${rhfField.id}]`}
draggableId={`item-${index}`}
Expand Down

0 comments on commit c4bd217

Please sign in to comment.