fix: sshkey, storage selection displayName

This commit is contained in:
jialin
2026-06-03 18:28:31 +08:00
committed by jialin
parent 8e31b71668
commit 2bb04a419d
7 changed files with 7 additions and 7 deletions
@@ -42,7 +42,7 @@ const StorageVolume = ({
const storageOptions = useMemo(
() =>
(storageData?.items || []).map((item) => ({
label: `${item.name} / ${item.spec?.capacity ?? '-'}`,
label: `${item.displayName || item.name} / ${item.spec?.capacity ?? '-'}`,
value: item.name
})),
[storageData]
@@ -16,7 +16,7 @@ export default function useQuerySshkeys() {
>({
key: 'sshkeyOptions',
fetchList,
getLabel: (item) => item?.name as string,
getLabel: (item) => item.displayName || (item?.name as string),
getValue: (item) => item?.name as string
});