Skip to content

Commit 04dade2

Browse files
authored
fix: update fetchReleases to use owner and repo from meta (#12590)
1 parent f69220c commit 04dade2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/app/components/plugins/plugin-item/action.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const Action: FC<Props> = ({
5454
const invalidateInstalledPluginList = useInvalidateInstalledPluginList()
5555

5656
const handleFetchNewVersion = async () => {
57-
const fetchedReleases = await fetchReleases(author, pluginName)
57+
const owner = meta!.repo.split('/')[0] || author
58+
const repo = meta!.repo.split('/')[1] || pluginName
59+
const fetchedReleases = await fetchReleases(owner, repo)
5860
if (fetchedReleases.length === 0) return
5961
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
6062
Toast.notify(toastProps)

0 commit comments

Comments
 (0)