svelte: Fix GraphQL error on contributors page (#62896)

This commit is contained in:
Felix Kling 2024-05-24 13:12:27 +02:00 committed by GitHub
parent 739b832b3d
commit d01b4cb140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ import { ContributorsPage_ContributorsQuery } from './page.gql'
const pageSize = 20
export const load: PageLoad = ({ url, params }) => {
const afterDate = url.searchParams.get('after') ?? ''
const afterDate = url.searchParams.get('after') ?? null
const { first, last, before, after } = getPaginationParams(url.searchParams, pageSize)
const client = getGraphQLClient()
const { repoName } = parseRepoRevision(params.repo)