From 8e9c7c63c4c893b684ec8921bb6a650bb24f7ae3 Mon Sep 17 00:00:00 2001 From: Denis Golovin Date: Wed, 10 Mar 2021 12:56:48 -0800 Subject: [PATCH] End New Component workflow when application selection canceled This PR fixes #2015. Signed-off-by: Denis Golovin dgolovin@redhat.com --- src/openshift/component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openshift/component.ts b/src/openshift/component.ts index 515302ce0..6b13348a7 100644 --- a/src/openshift/component.ts +++ b/src/openshift/component.ts @@ -547,6 +547,9 @@ export class Component extends OpenShiftItem { const application = await Component.getOpenShiftCmdData(undefined, 'Select an Application where you want to create a Component' ); + + if (!application) return null; + let componentTypeName: string, version: string, starterProjectName:string;