File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
web/src/classic/components/organisms Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments