diff --git a/app/soapbox/utils/queries.ts b/app/soapbox/utils/queries.ts index d066f0855f..7361d017b9 100644 --- a/app/soapbox/utils/queries.ts +++ b/app/soapbox/utils/queries.ts @@ -11,7 +11,7 @@ export interface PaginatedResult { /** Flatten paginated results into a single array. */ const flattenPages = (queryInfo: UseInfiniteQueryResult>) => { return queryInfo.data?.pages.reduce( - (prev: T[], curr) => [...prev, ...curr.result], + (prev: T[], curr) => [...curr.result, ...prev], [], ); };