From ef1f429437f8a5c008f2e1d31131c3c9fc1b5a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Fri, 24 Jan 2025 18:42:14 +0800 Subject: [PATCH] fix(1.0): update github plugin 404 (#13014) --- .../components/plugins/plugin-detail-panel/detail-header.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 75239a424f57e2..0eded48378ada4 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -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)