fix(SW-165): fix issue with pagination now showing
This commit is contained in:
@@ -539,11 +539,12 @@ export const userQueryRouter = router({
|
|||||||
|
|
||||||
return dateA > dateB ? -1 : 1
|
return dateA > dateB ? -1 : 1
|
||||||
})
|
})
|
||||||
.slice(limit * (page - 1), limit * page)
|
|
||||||
|
const slicedData = pageData.slice(limit * (page - 1), limit * page)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
data: {
|
data: {
|
||||||
transactions: pageData.map(({ type, attributes }) => {
|
transactions: slicedData.map(({ type, attributes }) => {
|
||||||
return {
|
return {
|
||||||
type,
|
type,
|
||||||
awardPoints: attributes.awardPoints,
|
awardPoints: attributes.awardPoints,
|
||||||
|
|||||||
Reference in New Issue
Block a user