diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-08-07 13:53:39 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-08-07 14:05:53 +0100 |
commit | 0f0e70bc13a680efb438c0e6b6007c3f5fc98eca (patch) | |
tree | 9e39f4bc19064265b0bbca410cba73d000b64891 /app | |
parent | d8fc401229367a9d46f3282cb39ff593e51969dd (diff) | |
download | gitlab-ce-0f0e70bc13a680efb438c0e6b6007c3f5fc98eca.tar.gz |
Reset error state in success mutation to handle error-success state
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/reports/store/mutations.js | 2 |
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; |