From 01b918a8f6d8fb14f53e524f91e936a1724816fc Mon Sep 17 00:00:00 2001 From: ochicf Date: Fri, 14 Sep 2018 11:13:38 +0200 Subject: [PATCH] remove options --- packages/vulcan-forms/lib/components/Form.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/vulcan-forms/lib/components/Form.jsx b/packages/vulcan-forms/lib/components/Form.jsx index a83acc3f9..0b7982c8d 100644 --- a/packages/vulcan-forms/lib/components/Form.jsx +++ b/packages/vulcan-forms/lib/components/Form.jsx @@ -749,12 +749,10 @@ class SmartForm extends Component { }; editMutationSuccessCallback = result => { - this.mutationSuccessCallback(result, 'edit', { clearCurrentDocument: false, clearInitialDocument: true }); + this.mutationSuccessCallback(result, 'edit', ); }; - mutationSuccessCallback = (result, mutationType, options = {}) => { - const { clearCurrentDocument, clearInitialDocument } = options; - + mutationSuccessCallback = (result, mutationType) => { this.setState(prevState => ({ disabled: false })); const document = result.data[Object.keys(result.data)[0]].data; // document is always on first property