fix: sshkey, storage selection displayName
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user