1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

address review comment

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2021-11-05 13:13:12 -04:00
parent 3302bc69c7
commit f3c3453308
3 changed files with 9 additions and 9 deletions

View File

@ -92,10 +92,10 @@ export class ServicePortComponent extends React.Component<Props> {
this.waiting = true;
// determine how many port-forwards are already active
const { length } = await getPortForwards();
try {
// determine how many port-forwards are already active
const { length } = await getPortForwards();
this.forwardPort = await addPortForward(portForward);
if (this.forwardPort) {

View File

@ -96,10 +96,10 @@ export class PodContainerPort extends React.Component<Props> {
this.waiting = true;
// determine how many port-forwards are already active
const { length } = await getPortForwards();
try {
// determine how many port-forwards are already active
const { length } = await getPortForwards();
this.forwardPort = await addPortForward(portForward);
if (this.forwardPort) {

View File

@ -95,10 +95,10 @@ export class PortForwardDialog extends Component<Props> {
const { portForward } = this;
const { currentPort, desiredPort, close } = this;
// determine how many port-forwards are already active
const { length } = await getPortForwards();
try {
// determine how many port-forwards are already active
const { length } = await getPortForwards();
let port: number;
portForward.protocol = dialogState.useHttps ? "https" : "http";