diff --git a/packages/ra-core/src/form/FormWithRedirect.tsx b/packages/ra-core/src/form/FormWithRedirect.tsx index f0d8cd84039..67f4f84027d 100644 --- a/packages/ra-core/src/form/FormWithRedirect.tsx +++ b/packages/ra-core/src/form/FormWithRedirect.tsx @@ -37,7 +37,7 @@ const FormWithRedirect = ({ form, initialValuesEqual, keepDirtyOnReinitialize = true, - mutators = { ...arrayMutators }, + mutators = arrayMutators as any, // FIXME see https://github.com/final-form/react-final-form/issues/704 and https://github.com/microsoft/TypeScript/issues/35771 record, render, save,