Skip to content

Commit

Permalink
Merge pull request #80 from bswinnerton/view-a-different-users-gists
Browse files Browse the repository at this point in the history
Add support for viewing Gists of other users
  • Loading branch information
bswinnerton authored Jul 26, 2017
2 parents ea90302 + c2e474f commit 569fe97
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Contents/Scripts/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class Account {
let result = GraphQL.execute(query, variables);

if (result) {
if (result.data && result.data.viewer) {
return result.data.viewer.gists.edges;
if (result.data && result.data.user) {
return result.data.user.gists.edges;
} else {
return [];
}
Expand Down
Loading

0 comments on commit 569fe97

Please sign in to comment.