Fix #203 - try/catch around JSON parse

This commit is contained in:
Eugen Rochko 2016-12-11 23:18:41 +01:00
parent 44c725fd17
commit 549633aa0e

View file

@ -17,6 +17,10 @@ export default getState => axios.create({
}, },
transformResponse: [function (data) { transformResponse: [function (data) {
try {
return JSON.parse(data); return JSON.parse(data);
} catch(Exception) {
return data;
}
}] }]
}); });