From c36b945c4fca56d25aea2713554653c26b8da004 Mon Sep 17 00:00:00 2001 From: loganhz Date: Sat, 8 Sep 2018 09:07:07 +0800 Subject: [PATCH] Bug fix --- app/components/container/form-volumes/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/container/form-volumes/component.js b/app/components/container/form-volumes/component.js index 592ce9a89..0b04add88 100644 --- a/app/components/container/form-volumes/component.js +++ b/app/components/container/form-volumes/component.js @@ -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; } }