Skip to content

Commit

Permalink
fix: sorting in the watch later view
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Oct 6, 2022
1 parent 6f6966d commit 3eca789
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function StaticRenderer(props: StaticRendererProps) {
const { view, channel, videos: initialVideos, onError, onVideoPlay } = props;
const [page, setPage] = useState(1);
const { itemsPerRow = 0 } = useGrid(config.gridColumns);
const { setChannelData } = useChannelVideos(HomeView.Bookmarks);
const { setChannelData } = useChannelVideos(view);
const ids = initialVideos.map(({ id }) => id);
const total = ids.length;
const maxResults = Math.min(total, itemsPerRow * page);
Expand Down

0 comments on commit 3eca789

Please sign in to comment.