Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-07 15:53:39 +0300
committerFilipa Lacerda <filipa@gitlab.com>2018-08-07 16:05:53 +0300
commit0f0e70bc13a680efb438c0e6b6007c3f5fc98eca (patch)
tree9e39f4bc19064265b0bbca410cba73d000b64891 /app
parentd8fc401229367a9d46f3282cb39ff593e51969dd (diff)
Reset error state in success mutation to handle error-success state
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/reports/store/mutations.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/reports/store/mutations.js b/app/assets/javascripts/reports/store/mutations.js
index e806d120b51..1983a8c9e56 100644
--- a/app/assets/javascripts/reports/store/mutations.js
+++ b/app/assets/javascripts/reports/store/mutations.js
@@ -9,6 +9,8 @@ export default {
state.isLoading = true;
},
[types.RECEIVE_REPORTS_SUCCESS](state, response) {
+ // Make sure to clean previous state in case it was an error
+ state.hasError = false;
state.isLoading = false;