fix user posts/comments fetchMore
This commit is contained in:
parent
e97951dd18
commit
751abaa1ad
|
@ -48,7 +48,7 @@ export default function getApolloClient () {
|
|||
return {
|
||||
cursor: incoming.cursor,
|
||||
items: [...(existing?.items || []), ...incoming.items],
|
||||
pins: existing?.pins
|
||||
pins: existing?.pins || null
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue