mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
fix: isEncrypted breaks all the volume page
Signed-off-by: andy.lee <andy.lee@suse.com> (cherry picked from commit 2232e56ba13bef96ee6e44966fdd7c328270df8c)
This commit is contained in:
parent
26d85a7760
commit
c188f3367d
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user