Merge pull request #2228 from loganhz/fix-secret

Bug fix
This commit is contained in:
Westly Wright 2018-09-10 09:47:10 -07:00 committed by GitHub
commit 18451bf522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ export default Component.extend({
}
} else {
found = store.all('namespacedSecret').findBy('type', secretName);
if ( get(found, 'type') === 'namespacedCertificate' ) {
if ( found && get(found, 'type') === 'namespacedCertificate' ) {
return C.VOLUME_TYPES.CERTIFICATE;
}
}