Update web/app/components/plugins/plugin-detail-panel/detail-header.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/19758/head
Joel 9 months ago committed by Junyan Qin
parent 61a376758e
commit 596b1318e1
No known key found for this signature in database
GPG Key ID: 22FE3AFADC710CEB

@ -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

Loading…
Cancel
Save