From 596b1318e1e0bb5a485370a06372bf54f519d577 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 0afd3c26f4..e8b6a923c6 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -122,7 +122,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