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]
2025-04-17 14:50:31 +08:00
committed by GitHub
co-authored by andy.lee
parent b0609020cc
commit 1e02dbffe3
@@ -238,7 +238,7 @@ export default class HciPv extends HarvesterResource {
} }
get isEncrypted() { get isEncrypted() {
return this.relatedPV?.spec.csi.volumeAttributes.encrypted === 'true'; return this.relatedPV?.spec?.csi?.volumeAttributes?.encrypted === 'true';
} }
get longhornVolume() { get longhornVolume() {