mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
update loading state on mutation error
This commit is contained in:
parent
f162054a0b
commit
dbd41a39f0
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ class MutationButtonInner extends PureComponent {
|
|||
successCallback(result);
|
||||
}
|
||||
}).catch(error => {
|
||||
this.setState({ loading: false });
|
||||
if(errorCallback) {
|
||||
errorCallback(error);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue