mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
ba717cfc62
commit
59c495511a
1 file changed
+1
-1
@@ -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