mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
remove options
This commit is contained in:
parent
157527fda4
commit
01b918a8f6
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue