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 { return {
cursor: incoming.cursor, cursor: incoming.cursor,
items: [...(existing?.items || []), ...incoming.items], 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} /> <UserHeader user={user} />
<CommentsFlat <CommentsFlat
comments={comments} cursor={cursor} comments={comments} cursor={cursor}
variables={{ name: user.name }} includeParent noReply variables={{ name: user.name, sort: 'user' }} includeParent noReply
/> />
</Layout> </Layout>
) )