fix backup encryption secret search

This commit is contained in:
Nancy Butler 2020-11-24 12:58:51 -07:00
parent 6de75253be
commit 89862d7f41
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export default {
},
encryptionSecretNames() {
return this.allSecrets.filter(secret => !!secret.data['encryption-provider-config.yaml'] && secret.metadata.namespace === this.chartNamespace && !secret.metadata?.state?.error).map(secret => secret.metadata.name);
return this.allSecrets.filter(secret => (secret.data || {})['encryption-provider-config.yaml'] && secret.metadata.namespace === this.chartNamespace && !secret.metadata?.state?.error).map(secret => secret.metadata.name);
},
storageOptions() {