Skip to content

Commit 7fab324

Browse files
committed
a bit simpler usage depending on final-form/final-form#68
1 parent 77d51f3 commit 7fab324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const form = createForm({
1212
})
1313

1414
// Get form.mutators (default as object) and cast to Mutators
15-
const mutators: Mutators = ((form.mutators || {}) as any) as Mutators
15+
const mutators: Mutators = (form.mutators as any) as Mutators
1616

1717
mutators.insert('customers', 0, { firstName: '', lastName: '' })
1818
mutators.move('customers', 0, 1)

0 commit comments

Comments
 (0)