Skip to content

Commit ee33735

Browse files
authored
fix port undefined error (#1570)
1 parent 36c6cea commit ee33735

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openshift/url.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export class Url extends OpenShiftItem{
2222
const urlName = await Url.getName('URL name', await Url.odo.getRoutes(component));
2323
if (!urlName) return null;
2424
const ports: Port[] = await Url.odo.getComponentPorts(component);
25+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2526
const portItems: QuickPickItem[] = ports.map<QuickPickItem>((item: any) => {
26-
item.label = `${item.Number}/${item.Protocol}`;
27+
item.label = `${item.number}/${item.protocol}`;
2728
return item;
2829
});
2930
let port: Port | QuickPickItem;

0 commit comments

Comments
 (0)