Fix #203 - try/catch around JSON parse
parent
44c725fd17
commit
549633aa0e
|
@ -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…
Reference in New Issue