Skip to content

Commit 8c01d8b

Browse files
committed
Do not fetch children for components without context
This PR fixes #1773. Signed-off-by: Denis Golovin [email protected]
1 parent 9688edb commit 8c01d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export class OpenShiftComponent extends OpenShiftObjectImpl {
280280
}
281281

282282
getChildren(): Promise<OpenShiftObject[]> {
283-
return this.odo.getComponentChildren(this);
283+
return this.contextValue === ContextType.COMPONENT_NO_CONTEXT ? Promise.resolve([]) : this.odo.getComponentChildren(this);
284284
}
285285

286286
get tooltip(): string {

0 commit comments

Comments
 (0)