Skip to content

Commit

Permalink
fix(ts): fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Feb 3, 2024
1 parent b9e698b commit df57568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/FormBuilder/fields/FieldArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const FieldArray = withConditional<FieldArrayFieldProps>(
{(provided, snapshot) => (
<div {...provided.droppableProps} ref={provided.innerRef}>
{fields.map((rhfField, index) => {
// @ts-expect-error
// eslint-disable-next-line no-underscore-dangle
if (rhfField._destroy) return null;
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/FormBuilder/fields/QuestionsField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const QuestionsField = withConditional<QuestionsFieldProps>(
{(provided) => (
<div {...provided.droppableProps} ref={provided.innerRef}>
{fieldsArray.map((rhfField, index) => {
// @ts-expect-error
// eslint-disable-next-line no-underscore-dangle
if (rhfField._destroy) return null;

Expand Down

0 comments on commit df57568

Please sign in to comment.