update loading state on mutation error

This commit is contained in:
ochicf 2018-10-31 12:15:57 +01:00
parent f162054a0b
commit dbd41a39f0

View file

@ -32,6 +32,7 @@ class MutationButtonInner extends PureComponent {
successCallback(result);
}
}).catch(error => {
this.setState({ loading: false });
if(errorCallback) {
errorCallback(error);
}