diff --git a/templates/react-class.mustache b/templates/react-class.mustache index 66b7751f..10304a3a 100644 --- a/templates/react-class.mustache +++ b/templates/react-class.mustache @@ -77,7 +77,8 @@ let {{&className}} = (function(){ headers, body: JSON.stringify(body) }).then((response) => { - return response.json(); + if(response.status === 204) return response.text(); + else return response.json(); }).then((body) => { deferred.resolve(body); }).catch((error) => {