Skip to content

Commit 68803e3

Browse files
committed
PostsPage: LoadMore() in subreddits
1 parent ccc9173 commit 68803e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/posts/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class PostsPage {
6767
if (!lastPost) {
6868
infiniteScroll.complete()
6969
} else {
70-
this.redditApi.fetchNext(lastPost.name).subscribe((posts) => {
70+
this.redditApi.fetchNext(lastPost.name, this.subreddit).subscribe((posts) => {
7171
this.posts = this.posts.concat(posts);
7272
infiniteScroll.complete();
7373
})

0 commit comments

Comments
 (0)