Browse Source

fix channel view pagination issues (#1127)

fixes: #1126
Diego Cardenas 3 năm trước cách đây
mục cha
commit
617f77db95
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/viewer/ChannelView/ChannelView.tsx

+ 1 - 1
src/views/viewer/ChannelView/ChannelView.tsx

@@ -178,7 +178,7 @@ export const ChannelView: React.FC = () => {
       setCurrentSearchPage(page)
     } else {
       setCurrentPage(page)
-      if (!!edges && page * videosPerPage + videosPerPage > edges?.length) {
+      if (!!edges && page * videosPerPage + videosPerPage > edges?.length && edges?.length < (totalCount ?? 0)) {
         fetchMore({
           variables: {
             ...variables,