mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +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:
@@ -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