From 6d826d4dc6032dd243a0f4801cdab32706a82312 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 17 Jul 2025 10:35:05 +0800 Subject: [PATCH] fix: not from markpalceplace show auto update --- .../components/plugins/plugin-detail-panel/detail-header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 fbde6f4406..ab1f25e29f 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -107,7 +107,7 @@ const DetailHeader = ({ const { referenceSetting } = useReferenceSetting() const { auto_upgrade: autoUpgradeInfo } = referenceSetting || {} const isAutoUpgradeEnabled = useMemo(() => { - if (!autoUpgradeInfo) + if (!autoUpgradeInfo || !isFromMarketplace) return false if(autoUpgradeInfo.upgrade_mode === AUTO_UPDATE_MODE.update_all) return true @@ -116,7 +116,7 @@ const DetailHeader = ({ if(autoUpgradeInfo.upgrade_mode === AUTO_UPDATE_MODE.exclude && !autoUpgradeInfo.exclude_plugins.includes(plugin_id)) return true return false - }, [autoUpgradeInfo, plugin_id]) + }, [autoUpgradeInfo, plugin_id, isFromMarketplace]) const [isDowngrade, setIsDowngrade] = useState(false) const handleUpdate = async (isDowngrade?: boolean) => {