diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-02-09 14:18:21 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-02-09 14:18:21 +0300 |
commit | 6077dea7b1f6fb857f786d86cd7cf9e5204ec9a9 (patch) | |
tree | 0cc84619357997fe390d2117acc513ffd7f9ab1e /app/assets/javascripts/vue_shared | |
parent | acb68ae69e382a7bd949386f14d2d27f6cada086 (diff) |
Remove store from global namespace, use CSJ instead
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r-- | app/assets/javascripts/vue_shared/vue_resource_interceptor.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/vue_resource_interceptor.js.es6 b/app/assets/javascripts/vue_shared/vue_resource_interceptor.js.es6 index a575ae3e441..d3229f9f730 100644 --- a/app/assets/javascripts/vue_shared/vue_resource_interceptor.js.es6 +++ b/app/assets/javascripts/vue_shared/vue_resource_interceptor.js.es6 @@ -6,7 +6,7 @@ Vue.http.interceptors.push((request, next) => { Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1; next((response) => { - if (typeof response.data === 'string' && response.status !== 500) { + if (typeof response.data === 'string') { response.data = JSON.parse(response.data); } |