From 06bb405d743bdfb484dff561224d321af4fa49db Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Thu, 17 Aug 2023 16:54:27 +0300 Subject: [PATCH] fix(*): fixed while creating robot fleet bug --- README.md | 2 +- package.json | 2 +- .../CreateForms/CreateRobotFormStep2.tsx | 11 +++----- .../SidebarLists/SidebarListItem.tsx | 5 +++- .../FleetDashboardPage/FleetDashboardPage.tsx | 25 +++++++++++++++++-- 5 files changed, 33 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b892860f..57f143ce 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ node - release + release language diff --git a/package.json b/package.json index 9c8bda44..a89503d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.13.0", + "version": "0.13.1", "private": true, "dependencies": { "@emotion/css": "^11.10.6", diff --git a/src/components/CreateForms/CreateRobotFormStep2.tsx b/src/components/CreateForms/CreateRobotFormStep2.tsx index 187f7d13..3962ac70 100644 --- a/src/components/CreateForms/CreateRobotFormStep2.tsx +++ b/src/components/CreateForms/CreateRobotFormStep2.tsx @@ -44,7 +44,7 @@ export default function CreateRobotFormStep2({ ? CreateEnvironmentFormStep2Validations : CreateRobotFormStep2Validations, initialValues: robotData?.step2, - onSubmit: async (values: any) => { + onSubmit: (values: any) => { formik.setSubmitting(true); if (envOnPremiseRobot) { @@ -70,7 +70,7 @@ export default function CreateRobotFormStep2({ await handleSubmit(); }); } else { - await dispatch( + dispatch( createRobot({ organizationId: selectedState?.organization?.organizationId, roboticsCloudName: selectedState?.roboticsCloud?.name, @@ -233,11 +233,8 @@ export default function CreateRobotFormStep2({ }, [formik]); useEffect(() => { - console.log( - responseFleet?.fleetStatus !== "Ready" || - responseFleet?.namespaceStatus !== "Active" - ); - }, [responseFleet]); + console.log(formik); + }, [formik]); return (