fix profile posts and comments pagination
This commit is contained in:
parent
2ad2ff6ff5
commit
a989140653
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default function UserPosts ({ data: { user, items: { items, cursor } } })
|
||||||
<div className='mt-2'>
|
<div className='mt-2'>
|
||||||
<Items
|
<Items
|
||||||
items={items} cursor={cursor}
|
items={items} cursor={cursor}
|
||||||
variables={{ name: user.name }}
|
variables={{ name: user.name, sort: 'user' }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in New Issue