From ca7eccd6880b32008f2a61d1d5805f233679d6a3 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Wed, 26 Feb 2025 17:48:14 +0800 Subject: [PATCH] fix golden image error when creating LVM volume Signed-off-by: andy.lee --- pkg/harvester/list/harvesterhci.io.volume.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/list/harvesterhci.io.volume.vue b/pkg/harvester/list/harvesterhci.io.volume.vue index cd8ff4a4..688dde3a 100644 --- a/pkg/harvester/list/harvesterhci.io.volume.vue +++ b/pkg/harvester/list/harvesterhci.io.volume.vue @@ -60,7 +60,7 @@ export default { this.$store.dispatch('type-map/configureType', { match: HCI.VOLUME, isCreatable: false }); } // we only show the non golden image PVCs in the list - const pvcs = hash.pvcs.filter((pvc) => pvc.metadata.annotations[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true'); + const pvcs = hash.pvcs.filter((pvc) => pvc?.metadata?.annotations?.[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true'); this.rows = pvcs; },