Skip to content

Commit ef1f429

Browse files
authored
fix(1.0): update github plugin 404 (#13014)
1 parent c966bf1 commit ef1f429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/app/components/plugins/plugin-detail-panel/detail-header.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ const DetailHeader = ({
100100
return
101101
}
102102

103-
const fetchedReleases = await fetchReleases(author, name)
103+
const owner = meta!.repo.split('/')[0] || author
104+
const repo = meta!.repo.split('/')[1] || name
105+
const fetchedReleases = await fetchReleases(owner, repo)
104106
if (fetchedReleases.length === 0) return
105107
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
106108
Toast.notify(toastProps)

0 commit comments

Comments
 (0)