Skip to content

Commit

Permalink
missed one response
Browse files Browse the repository at this point in the history
  • Loading branch information
reskyner committed Dec 18, 2018
1 parent aa1fab1 commit 836a837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/modalStateSave.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ModalStateSave extends Component {
}).then(function (response) {
return response.json();
}).then(function (myJson) {
var getTitle = myJson.results[JSON.stringify(0)].title;
var getTitle = myJson[JSON.stringify(0)].title;
_this.props.setSessionTitle(getTitle);
return getTitle;
}).then(getTitle => this.setState(prevState => ({title: getTitle})))
Expand Down

0 comments on commit 836a837

Please sign in to comment.