diff options
Diffstat (limited to 'webui/src/Bug.js')
-rw-r--r-- | webui/src/Bug.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/webui/src/Bug.js b/webui/src/Bug.js index 28558a13..f8699fc4 100644 --- a/webui/src/Bug.js +++ b/webui/src/Bug.js @@ -17,8 +17,8 @@ const Bug = ({ bug, classes }) => ( <main className={classes.main}> <BugSummary bug={bug} /> - {bug.comments.map((comment, index) => ( - <Comment key={index} comment={comment} /> + {bug.comments.edges.map(({ cursor, node }) => ( + <Comment key={cursor} comment={node} /> ))} </main> ); @@ -26,8 +26,13 @@ const Bug = ({ bug, classes }) => ( Bug.fragment = gql` fragment Bug on Bug { ...BugSummary - comments { - ...Comment + comments(input: { first: 10 }) { + edges { + cursor + node { + ...Comment + } + } } } |