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

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

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
parent b0609020cc
commit 1e02dbffe3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {