Fix response body saving

This commit is contained in:
Gregory Schier
2017-07-17 15:58:41 -07:00
parent 40c089c091
commit f03e3c3bcc
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"private": true,
"name": "insomnia",
"version": "5.6.1",
"version": "5.6.2",
"productName": "Insomnia",
"longName": "Insomnia REST Client",
"description": "Debug APIs like a human, not a robot",

View File

@@ -49,7 +49,7 @@ class ResponsePane extends PureComponent {
return;
}
const {response} = this.state;
const {response} = this.props;
const {contentType} = response;
const extension = mime.extension(contentType) || '';
@@ -81,7 +81,7 @@ class ResponsePane extends PureComponent {
}
_handleDownloadFullResponseBody () {
const {response} = this.state;
const {response} = this.props;
if (!response) {
// Should never happen