From a92d33de845c3260dc39599fbb085a76e95e90fb Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Sun, 20 Mar 2022 20:33:01 -0700 Subject: [PATCH] fix to esc behavior --- .../core-or-periphery/CoreOrPeriphery.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cli/src/components/core-or-periphery/CoreOrPeriphery.tsx b/cli/src/components/core-or-periphery/CoreOrPeriphery.tsx index f54602ad6..49cde2caa 100644 --- a/cli/src/components/core-or-periphery/CoreOrPeriphery.tsx +++ b/cli/src/components/core-or-periphery/CoreOrPeriphery.tsx @@ -54,7 +54,8 @@ const CoreOrPeriphery = ({ type }: { type: "core" | "periphery" }) => { break; case "restart": - setMany(["stage", "port"], ["port", undefined]); + setMany(["stage", "port"]); + break; case "confirm": setMany(["stage", "restart"], ["restart", undefined]); @@ -117,7 +118,7 @@ const CoreOrPeriphery = ({ type }: { type: "core" | "periphery" }) => { )} - {stage === "port" && port === undefined && ( + {stage === "port" && ( port:{" "} @@ -165,11 +166,11 @@ const CoreOrPeriphery = ({ type }: { type: "core" | "periphery" }) => { { set(type, { - name: name as string, - secretVolume: secretVolume as string, - hostNetwork: hostNetwork as boolean, + name: name!, + secretVolume: secretVolume!, + hostNetwork: hostNetwork!, port: Number(port), - restart: "", + restart: restart!, }); next(); }}