Merge pull request #123 from harvester/mergify/bp/release-harvester-v1.5/pr-122

fix: isEncrypted breaks all the volume page (backport #122)
This commit is contained in:
Andy Lee 2025-02-11 11:21:42 +08:00 committed by GitHub
commit 8a7cc69a69
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() {