We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2e496 commit 8659528Copy full SHA for 8659528
RedditOs/Features/Subreddit/SubredditViewModel.swift
@@ -95,7 +95,7 @@ class SubredditViewModel: ObservableObject {
95
.map{ $0.data?.children.map{ $0.data }}
96
.sink(receiveValue: { [weak self] results in
97
self?.isSearchLoading = false
98
- if self?.searchResults?.last != nil, let results = results {
+ if after != nil, let results = results {
99
self?.searchResults?.append(contentsOf: results)
100
} else {
101
self?.searchResults = results
0 commit comments