Skip to content

Commit

Permalink
fix(ui): load new items from paging data
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Mar 6, 2024
1 parent 37835a4 commit f06d8ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fun LazyListScope.ArticleList(
onSwipeEndToStart: ((ArticleWithFeed) -> Unit)? = null,
) {
for (index in 0 until pagingItems.itemCount) {
when (val item = pagingItems.peek(index)) {
when (val item = pagingItems[index]) {
is ArticleFlowItem.Article -> {
item(key = item.articleWithFeed.article.id) {
// if (item.articleWithFeed.article.isUnread) {
Expand Down

0 comments on commit f06d8ce

Please sign in to comment.