Skip to content

Commit 48c1de1

Browse files
committed
Fix unit test errors for the use case with existing devfile
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 01e22d8 commit 48c1de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openshift/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ export class Component extends OpenShiftItem {
668668
`Creating new Component '${componentName}'`,
669669
() => Component.odo.createComponentFromFolder(
670670
application,
671-
componentType.name,
672-
componentType.version,
671+
componentType? componentType.name : undefined, // in case of using existing devfile
672+
componentType? componentType.version : undefined,
673673
componentName,
674674
folder,
675675
createStarter,

0 commit comments

Comments
 (0)