Fix #203 - try/catch around JSON parse

main
Eugen Rochko 8 years ago
parent 2b22c33039
commit f92cb02b9b

@ -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;
}
}]
});

Loading…
Cancel
Save