mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fixed incorrect usage of github api in example
more: https://developer.github.com/v3/gists/#detailed-gist-representation
This commit is contained in:
committed by
Paul O’Shannessy
parent
ba717cfc62
commit
59c495511a
@@ -26,7 +26,7 @@ var UserGist = React.createClass({
|
||||
$.get(this.props.source, function(result) {
|
||||
var lastGist = result[0];
|
||||
this.setState({
|
||||
username: lastGist.user.login,
|
||||
username: lastGist.owner.login,
|
||||
lastGistUrl: lastGist.html_url
|
||||
});
|
||||
}.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user