diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx index 27ae871d97..596dc1c05e 100644 --- a/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx +++ b/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx @@ -80,7 +80,7 @@ const Installed: FC = ({ return (<>{ payload.latest_version === toInstallVersion || !supportCheckInstalled ? ( - {payload.latest_version} + {payload.version || payload.latest_version} ) : ( <> diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx index 4c6e67a64d..486f4f47ce 100644 --- a/web/app/components/plugins/plugin-page/index.tsx +++ b/web/app/components/plugins/plugin-page/index.tsx @@ -77,7 +77,6 @@ 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`, diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index 34cd0c7308..4bf4f54c66 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -79,6 +79,7 @@ export type PluginManifestInMarket = { icon: string label: Record category: PluginType + version: string // TODO: wait api return current plugin version latest_version: string brief: Record introduction: string