Skip to content

Commit

Permalink
Some fixes + increase page size
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtaber129 committed Oct 3, 2023
1 parent 96dbe85 commit ceff10b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const JiraIntegrationResults = (props: Props) => {
fragment JiraIntegrationResults_search on Query
@argumentDefinitions(
cursor: {type: "String"}
count: {type: "Int", defaultValue: 2}
count: {type: "Int", defaultValue: 20}
teamId: {type: "ID!"}
)
@refetchable(queryName: "JiraIntegrationResultsSearchPaginationQuery") {
Expand Down Expand Up @@ -68,7 +68,7 @@ const JiraIntegrationResults = (props: Props) => {
query
)

const lastItem = useLoadNextOnScrollBottom(paginationRes, {}, 2)
const lastItem = useLoadNextOnScrollBottom(paginationRes, {}, 20)
const {data, hasNext} = paginationRes

const jira = data.viewer.teamMember?.integrations.atlassian
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const AtlassianIntegration: AtlassianIntegrationResolvers = {
})
const nodes = mappedIssues.slice(0, first)
const edges = nodes.map((node, index) => ({
cursor: `${index + (afterInt ?? 0)}`,
cursor: `${index + startAt}`,
node
}))
const firstEdge = edges[0]
Expand Down

0 comments on commit ceff10b

Please sign in to comment.