fix(usage): instance type check conditions

This commit is contained in:
jialin
2026-06-22 15:25:18 +08:00
committed by jialin
parent 03842d1741
commit 1c9cabf7e7
@@ -58,7 +58,9 @@ const useInstancesColumns = (groupKey: GroupKey) => {
intl,
categories: ['cpu', 'ram'],
title:
(row.gpu_count ?? 0) > 0 ? instanceTypeLabel(row) : 'CPU Only'
!!row.gpu_count || !!row.vram_mib
? instanceTypeLabel(row)
: 'CPU Only'
}
)
};