fix: set hasMore trending statuses inside its own if statement
This commit is contained in:
parent
cbf1c2743b
commit
74be76d65b
|
@ -160,6 +160,7 @@ const SearchResults = () => {
|
|||
));
|
||||
resultsIds = results.statuses;
|
||||
} else if (!submitted && trendingStatuses && !trendingStatuses.isEmpty()) {
|
||||
hasMore = !!nextTrendingStatuses;
|
||||
searchResults = trendingStatuses.map((statusId: string) => (
|
||||
// @ts-ignore
|
||||
<StatusContainer
|
||||
|
@ -231,7 +232,7 @@ const SearchResults = () => {
|
|||
scrollKey={`${selectedFilter}:${value}`}
|
||||
isLoading={submitted && !loaded}
|
||||
showLoading={submitted && !loaded && searchResults?.isEmpty()}
|
||||
hasMore={(!!nextTrendingStatuses) || hasMore}
|
||||
hasMore={hasMore}
|
||||
onLoadMore={handleLoadMore}
|
||||
placeholderComponent={placeholderComponent}
|
||||
placeholderCount={20}
|
||||
|
|
Loading…
Reference in New Issue