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:
Justin 2022-09-12 12:28:19 +00:00
commit 3bbeaa4cf4

View file

@ -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));
}