Skip to content

Commit

Permalink
fix: link card github pr parser
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jun 4, 2024
1 parent f0679ae commit 2e5b9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/link-card/LinkCard.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type React from 'react'
import { useCallback, useMemo, useState } from 'react'
import { useInView } from 'react-intersection-observer'
import { m, useMotionTemplate, useMotionValue } from 'framer-motion'
import Link from 'next/link'
import RemoveMarkdown from 'remove-markdown'
import uniqolor from 'uniqolor'
import type React from 'react'
import type { FC, ReactNode, SyntheticEvent } from 'react'

import { simpleCamelcaseKeys as camelcaseKeys } from '@mx-space/api-client'
Expand Down Expand Up @@ -350,7 +350,7 @@ const fetchGitHubPRData: FetchObject = {
return parts.length === 3 && parts.every((part) => part.length > 0)
},
fetch: async (id, setCardInfo, setFullUrl) => {
const [owner, repo, , prNumber] = id.split('/')
const [owner, repo, prNumber] = id.split('/')
try {
const response = await fetchGitHubApi(
`https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}`,
Expand Down

0 comments on commit 2e5b9aa

Please sign in to comment.