Skip to content
Snippets Groups Projects
Commit f92cb02b authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix #203 - try/catch around JSON parse

parent 2b22c330
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}]
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment