We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021c3af commit 8deac1bCopy full SHA for 8deac1b
src/openshift/component.ts
@@ -161,9 +161,7 @@ export class Component extends OpenShiftItem {
161
'Select a Project',
162
'Select an Application',
163
'Select a Component you want to watch');
164
- const app: OpenShiftObject = component.getParent();
165
- const project: OpenShiftObject = app.getParent();
166
- Component.odo.executeInTerminal(Command.watchComponent(project.getName(), app.getName(), component.getName()));
+ if (component) Component.odo.executeInTerminal(Command.watchComponent(component.getParent().getParent().getName(), component.getParent().getName(), component.getName()));
167
}
168
169
static async openUrl(context: OpenShiftObject): Promise<ChildProcess> {
0 commit comments