Skip to content

Commit

Permalink
Fix failure to roll back optimistic update after error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsongas committed Oct 26, 2015
1 parent 55e01a9 commit eec66b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/scripts/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var CommentBox = React.createClass({
this.setState({data: data});
}.bind(this),
error: function(xhr, status, err) {
this.setState({data: comments});
console.error(this.props.url, status, err.toString());
}.bind(this)
});
Expand Down

0 comments on commit eec66b1

Please sign in to comment.