hackfix likes tab (#7770)
This commit is contained in:
@@ -42,8 +42,10 @@ export class LikesFeedAPI implements FeedAPI {
|
||||
limit,
|
||||
})
|
||||
if (res.success) {
|
||||
// HACKFIX: the API incorrectly returns a cursor when there are no items -sfn
|
||||
const isEmptyPage = res.data.feed.length === 0
|
||||
return {
|
||||
cursor: res.data.cursor,
|
||||
cursor: isEmptyPage ? undefined : res.data.cursor,
|
||||
feed: res.data.feed,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user