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