Skip to content

Commit

Permalink
Fix upload of image: introduced in 09bcbad a bug because full respons…
Browse files Browse the repository at this point in the history
…e is returned now
  • Loading branch information
Michael Weibel committed Mar 6, 2017
1 parent 8a5e908 commit ee54124
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/apis/sourceimages.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ export default (state) => {
filename: fileName,
contents: data
};
return state.request('POST', `sourceimages/${organization}`, payload, null, options)
.then(JSON.parse);
return state.request('POST', `sourceimages/${organization}`, payload, null, options).then((response) => {
response.body = JSON.parse(response.body);

return response;
});
});
};

Expand Down

0 comments on commit ee54124

Please sign in to comment.