Skip to content

Commit 21353e4

Browse files
authored
fix(web): revert update pagination variables for project query (#90)
1 parent e7cfab2 commit 21353e4

File tree

2 files changed

+4
-4
lines changed
  • web/src/classic/components/organisms

2 files changed

+4
-4
lines changed

web/src/classic/components/organisms/Dashboard/hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default (workspaceId?: string) => {
120120
fetchMore,
121121
networkStatus,
122122
} = useGetProjectsQuery({
123-
variables: { teamId: workspaceId ?? "", first: projectsPerPage },
123+
variables: { teamId: workspaceId ?? "", last: projectsPerPage },
124124
skip: !workspaceId,
125125
notifyOnNetworkStatusChange: true,
126126
});
@@ -156,7 +156,7 @@ export default (workspaceId?: string) => {
156156
if (hasMoreProjects) {
157157
fetchMore({
158158
variables: {
159-
after: projectData?.projects.pageInfo?.endCursor,
159+
before: projectData?.projects.pageInfo?.endCursor,
160160
},
161161
updateQuery: (prev, { fetchMoreResult }) => {
162162
if (!fetchMoreResult) return prev;

web/src/classic/components/organisms/Settings/ProjectList/hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default (workspaceId: string) => {
7272
fetchMore,
7373
networkStatus,
7474
} = useGetProjectsQuery({
75-
variables: { teamId: workspaceId ?? "", first: projectPerPage },
75+
variables: { teamId: workspaceId ?? "", last: projectPerPage },
7676
skip: !workspaceId,
7777
notifyOnNetworkStatusChange: true,
7878
});
@@ -111,7 +111,7 @@ export default (workspaceId: string) => {
111111
if (hasMoreProjects) {
112112
fetchMore({
113113
variables: {
114-
after: projectData?.projects.pageInfo?.endCursor,
114+
before: projectData?.projects.pageInfo?.endCursor,
115115
},
116116
updateQuery: (prev, { fetchMoreResult }) => {
117117
if (!fetchMoreResult) return prev;

0 commit comments

Comments
 (0)