diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/components/api.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/api.jsx b/app/assets/javascripts/components/api.jsx index 080c2bd6a..93cfc8046 100644 --- a/app/assets/javascripts/components/api.jsx +++ b/app/assets/javascripts/components/api.jsx @@ -17,6 +17,10 @@ export default getState => axios.create({ }, transformResponse: [function (data) { - return JSON.parse(data); + try { + return JSON.parse(data); + } catch(Exception) { + return data; + } }] }); |