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