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 ccd0d8be1b..9f326fa198 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -73,7 +73,7 @@ const DetailHeader = ({ const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures) const { - installation_id, + id, source, tenant_id, version, @@ -197,7 +197,7 @@ const DetailHeader = ({ const handleDelete = useCallback(async () => { showDeleting() - const res = await uninstallPlugin(installation_id) + const res = await uninstallPlugin(id) hideDeleting() if (res.success) { hideDeleteConfirm() @@ -207,7 +207,7 @@ const DetailHeader = ({ if (PluginType.tool.includes(category)) invalidateAllToolProviders() } - }, [showDeleting, installation_id, hideDeleting, hideDeleteConfirm, onUpdate, category, refreshModelProviders, invalidateAllToolProviders]) + }, [showDeleting, id, hideDeleting, hideDeleteConfirm, onUpdate, category, refreshModelProviders, invalidateAllToolProviders]) return (
@@ -351,7 +351,6 @@ const DetailHeader = ({ content={
{t(`${i18nPrefix}.deleteContentLeft`)}{label[locale]}{t(`${i18nPrefix}.deleteContentRight`)}
- {/* {usedInApps > 0 && t(`${i18nPrefix}.usedInApps`, { num: usedInApps })} */}
} onCancel={hideDeleteConfirm}