style: login placeholder

This commit is contained in:
jialin
2026-06-12 22:20:31 +08:00
committed by jialin
parent 48159171c2
commit 8c06862705
2 changed files with 8 additions and 8 deletions
@@ -157,8 +157,14 @@ export const renderInstanceType = (
],
[
intl.formatMessage({ id: 'gpuservice.instance.disk.persistent' }),
toGB(volume?.persistentTemplate?.spec?.capacity) ||
toGB(pvCapacityByName?.[volume?.persistent?.name]) ||
// toGB returns '-' (a truthy string) for falsy input, so only call it
// when a value actually exists — otherwise the first branch would
// short-circuit the chain and the PV fallbacks would never run.
(volume?.persistentTemplate?.spec?.capacity &&
toGB(volume.persistentTemplate.spec.capacity)) ||
(volume?.persistent?.name &&
pvCapacityByName?.[volume.persistent.name] &&
toGB(pvCapacityByName[volume.persistent.name])) ||
volume?.persistent?.name
]
]