mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-22 00:27:38 +08:00
fix undefined reading harvesterhci.io/storageClassName
Signed-off-by: Andy Lee <andy.lee@suse.com>
(cherry picked from commit 54f85963ea)
This commit is contained in:
1 parent
6b8b1f68eb
commit
45c0dce61b
1 file changed
+1
-1
@@ -201,7 +201,7 @@ export default class HciVmImage extends HarvesterResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get imageStorageClass() {
|
get imageStorageClass() {
|
||||||
return this?.metadata?.annotations[HCI_ANNOTATIONS.STORAGE_CLASS] || '';
|
return this?.metadata?.annotations?.[HCI_ANNOTATIONS.STORAGE_CLASS] || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
get imageMessage() {
|
get imageMessage() {
|
||||||
|
|||||||
Reference in new issue
Block a user