Skip to content

Commit

Permalink
fix: isEncrypted breaks all volume page
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <[email protected]>
  • Loading branch information
a110605 committed Jan 9, 2025
1 parent 6bcc152 commit 1c55c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/harvester/models/harvester/persistentvolumeclaim.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,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() {
Expand Down

0 comments on commit 1c55c2e

Please sign in to comment.