set is loading in success mutation

This commit is contained in:
Phil Hughes 2018-06-01 12:12:52 +01:00
parent 9ffb60acd8
commit 61bf5edeb0
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -9,6 +9,7 @@ export default {
state.isLoading = false;
},
[types.RECEIVE_MERGE_REQUESTS_SUCCESS](state, data) {
state.isLoading = false;
state.mergeRequests = data.map(mergeRequest => ({
id: mergeRequest.id,
iid: mergeRequest.iid,