fix: upgrade sussces auto hide

This commit is contained in:
Joel
2024-11-21 17:38:09 +08:00
parent 02c5989612
commit 8993a91f12
3 changed files with 4 additions and 24 deletions

View File

@ -77,6 +77,7 @@ const PluginPage = ({
if (packageId) {
const { data } = await fetchManifestFromMarketPlace(encodeURIComponent(packageId))
const { plugin } = data
// TODO: wait api return current plugin version
setManifest({
...plugin,
icon: `${marketplaceApiPrefix}/plugins/${plugin.org}/${plugin.name}/icon`,
@ -84,6 +85,7 @@ const PluginPage = ({
showInstallFromMarketplace()
}
})()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [packageId])
const {