Skip to content

Commit

Permalink
fix(1.0): update github plugin 404 (#13014)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored Jan 24, 2025
1 parent c966bf1 commit ef1f429
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ const DetailHeader = ({
return
}

const fetchedReleases = await fetchReleases(author, name)
const owner = meta!.repo.split('/')[0] || author
const repo = meta!.repo.split('/')[1] || name
const fetchedReleases = await fetchReleases(owner, repo)
if (fetchedReleases.length === 0) return
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
Toast.notify(toastProps)
Expand Down

0 comments on commit ef1f429

Please sign in to comment.