fix golden image error when creating LVM volume

Signed-off-by: andy.lee <andy.lee@suse.com>
(cherry picked from commit ca7eccd6880b32008f2a61d1d5805f233679d6a3)
This commit is contained in:
andy.lee 2025-02-26 17:48:14 +08:00 committed by Mergify
parent 9322a77b20
commit a1e7345437

View File

@ -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;
},