Merge branch 'fix-infinite-scroll' into 'develop'
Map paginated results into normalized Tag See merge request soapbox-pub/soapbox!1779
This commit is contained in:
commit
3bbeaa4cf4
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ const paginateResults = (state: State, searchType: SearchFilter, results: APIEnt
|
|||
const data = results[searchType];
|
||||
// Hashtags are a list of maps. Others are IDs.
|
||||
if (searchType === 'hashtags') {
|
||||
return (items as ImmutableOrderedSet<string>).concat(fromJS(data));
|
||||
return (items as ImmutableOrderedSet<string>).concat((fromJS(data) as Record<string, any>).map(normalizeTag));
|
||||
} else {
|
||||
return (items as ImmutableOrderedSet<string>).concat(toIds(data));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue