fix user posts/comments fetchMore

This commit is contained in:
keyan 2022-01-30 11:43:22 -06:00
parent e97951dd18
commit 751abaa1ad
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export default function getApolloClient () {
return {
cursor: incoming.cursor,
items: [...(existing?.items || []), ...incoming.items],
pins: existing?.pins
pins: existing?.pins || null
}
}
},

View File

@ -23,7 +23,7 @@ export default function UserComments (
<UserHeader user={user} />
<CommentsFlat
comments={comments} cursor={cursor}
variables={{ name: user.name }} includeParent noReply
variables={{ name: user.name, sort: 'user' }} includeParent noReply
/>
</Layout>
)