From 6c515bf9c3db8cb65e7d5965ec18f76dc69869c9 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 11 Jul 2025 15:22:51 +0800 Subject: [PATCH] Update web/app/components/plugins/plugin-detail-panel/detail-header.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../components/plugins/plugin-detail-panel/detail-header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a1017629aa..fbde6f4406 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) return false if(autoUpgradeInfo.upgrade_mode === AUTO_UPDATE_MODE.update_all) return true