diff --git a/package.json b/package.json index 0581c9d7..2d549b6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.23.4", + "version": "0.23.5", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/components/Connections/Connections.tsx b/src/components/Connections/Connections.tsx index 9ff866f7..44ca4f09 100644 --- a/src/components/Connections/Connections.tsx +++ b/src/components/Connections/Connections.tsx @@ -34,6 +34,10 @@ export default function Connections(): ReactElement { } else { rosClient?.close(); } + + return () => { + rosClient?.close(); + }; }, [ isRobotReady, isSettedCookie, diff --git a/src/layouts/EnvironmentPageLayout/EnvironmentPageLayout.tsx b/src/layouts/EnvironmentPageLayout/EnvironmentPageLayout.tsx index 01d34f9e..4f4f8275 100644 --- a/src/layouts/EnvironmentPageLayout/EnvironmentPageLayout.tsx +++ b/src/layouts/EnvironmentPageLayout/EnvironmentPageLayout.tsx @@ -2,7 +2,7 @@ import { Fragment, ReactElement } from "react"; import EnvironmentHeader from "../../components/EnvironmentHeader/EnvironmentHeader"; import HiddenFrame from "../../components/HiddenFrame/HiddenFrame"; import { envApplication } from "../../helpers/envProvider"; -import RosConnector from "../../components/RosConnector/RosConnector"; +// import RosConnector from "../../components/RosConnector/RosConnector"; import Overview from "../../pages/EnvironmentPage/Overview/Overview"; import MissionContext from "../../contexts/MissionContext"; import BarcodeContext from "../../contexts/BarcodeContext"; @@ -24,7 +24,7 @@ export default function EnvironmentPageLayout(): ReactElement {
- {!envApplication && } + {/* {!envApplication && } */} {(() => { switch (activeTab) {