Skip to content

Commit 97e189b

Browse files
committed
End New Component workflow when application selection canceled
This PR fixes #2015. Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent ed13b2a commit 97e189b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openshift/component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ export class Component extends OpenShiftItem {
547547
const application = await Component.getOpenShiftCmdData(undefined,
548548
'Select an Application where you want to create a Component'
549549
);
550+
551+
if (!application) return null;
552+
550553
let componentTypeName: string,
551554
version: string,
552555
starterProjectName:string;

0 commit comments

Comments
 (0)