diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsx index 80c5c5e78a..52c8c10309 100644 --- a/web/app/components/plugins/plugin-item/action.tsx +++ b/web/app/components/plugins/plugin-item/action.tsx @@ -23,7 +23,6 @@ type Props = { installationId: string pluginUniqueIdentifier: string pluginName: string - version: string usedInApps: number isShowFetchNewVersion: boolean isShowInfo: boolean @@ -36,7 +35,6 @@ const Action: FC = ({ installationId, pluginUniqueIdentifier, pluginName, - version, isShowFetchNewVersion, isShowInfo, isShowDelete, @@ -63,7 +61,7 @@ const Action: FC = ({ return const versions = fetchedReleases.map(release => release.tag_name) const latestVersion = getLatestVersion(versions) - if (compareVersion(latestVersion, version) === 1) { + if (compareVersion(latestVersion, meta!.version) === 1) { setShowUpdatePluginModal({ onSaveCallback: () => { invalidateInstalledPluginList() diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index aaa64b87a5..4ac2c80d7d 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -48,7 +48,6 @@ const PluginItem: FC = ({ endpoints_active, meta, plugin_id, - version, } = plugin const { category, author, name, label, description, icon, verified } = plugin.declaration @@ -93,7 +92,6 @@ const PluginItem: FC = ({ installationId={installation_id} author={author} pluginName={name} - version={version} usedInApps={5} isShowFetchNewVersion={source === PluginSource.github} isShowInfo={source === PluginSource.github}