From 202df103b112178e894b5139037769c40319bd31 Mon Sep 17 00:00:00 2001 From: Michael Monscheuer Date: Fri, 8 Nov 2019 21:07:27 +0100 Subject: [PATCH] Fix errors caused by passing new FinalForm form state property 'dirtyFieldsSinceLastSubmit' to form. See FinalForm 4.18.6 --- packages/ra-ui-materialui/src/form/SimpleForm.js | 1 + packages/ra-ui-materialui/src/form/TabbedForm.js | 1 + packages/ra-ui-materialui/src/list/FilterForm.js | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/ra-ui-materialui/src/form/SimpleForm.js b/packages/ra-ui-materialui/src/form/SimpleForm.js index 03d499b279e..a79896d6506 100644 --- a/packages/ra-ui-materialui/src/form/SimpleForm.js +++ b/packages/ra-ui-materialui/src/form/SimpleForm.js @@ -184,6 +184,7 @@ const sanitizeRestProps = ({ destroy, dirty, dirtyFields, + dirtyFieldsSinceLastSubmit, dirtySinceLastSubmit, dispatch, form, diff --git a/packages/ra-ui-materialui/src/form/TabbedForm.js b/packages/ra-ui-materialui/src/form/TabbedForm.js index b2bf175ae93..3a36540688f 100644 --- a/packages/ra-ui-materialui/src/form/TabbedForm.js +++ b/packages/ra-ui-materialui/src/form/TabbedForm.js @@ -244,6 +244,7 @@ const sanitizeRestProps = ({ destroy, dirty, dirtyFields, + dirtyFieldsSinceLastSubmit, dirtySinceLastSubmit, dispatch, form, diff --git a/packages/ra-ui-materialui/src/list/FilterForm.js b/packages/ra-ui-materialui/src/list/FilterForm.js index 3d02d63b8fe..5d248993561 100644 --- a/packages/ra-ui-materialui/src/list/FilterForm.js +++ b/packages/ra-ui-materialui/src/list/FilterForm.js @@ -34,6 +34,7 @@ const sanitizeRestProps = ({ destroy, dirty, dirtyFields, + dirtyFieldsSinceLastSubmit, dirtySinceLastSubmit, dispatch, displayedFilters,