kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'fix-infinite-scroll' into 'develop'
Map paginated results into normalized Tag See merge request soapbox-pub/soapbox!1779environments/review-develop-3zknud/deployments/943
commit
3bbeaa4cf4
|
@ -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));
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue