Merge pull request #122 from a110605/issue_7150

fix: isEncrypted breaks all the volume page
This commit is contained in:
Andy Lee 2025-02-11 11:20:10 +08:00 committed by GitHub
commit 7b3857cb38
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() {