fix: isEncrypted breaks all the volume page (#253)

Signed-off-by: andy.lee <andy.lee@suse.com>
(cherry picked from commit 2232e56ba1)
(cherry picked from commit c188f3367d)

Co-authored-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot]andandy.lee authored and GitHub committed 2025-04-17 14:50:31 +08:00
1 parent b0609020cc
commit 1e02dbffe3
1 file changed
+1 -1
@@ -238,7 +238,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() {