From 8107224c5df1af00faa61b189faef153c6a853de Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Fri, 3 Jan 2025 13:44:14 +0800 Subject: [PATCH] fix: isEncrypted breaks all volume page Signed-off-by: andy.lee --- pkg/harvester/models/harvester/persistentvolumeclaim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/models/harvester/persistentvolumeclaim.js b/pkg/harvester/models/harvester/persistentvolumeclaim.js index 501032bb876..a609252c9ce 100644 --- a/pkg/harvester/models/harvester/persistentvolumeclaim.js +++ b/pkg/harvester/models/harvester/persistentvolumeclaim.js @@ -229,7 +229,7 @@ export default class HciPv extends HarvesterResource { } get isEncrypted() { - return this.relatedPV?.spec.csi.volumeAttributes.encrypted === 'true'; + return this.relatedPV?.spec?.csi?.volumeAttributes?.encrypted === 'true'; } get longhornVolume() {