From d852da15d8651b0080fc8f31da7106f0eb93afac Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Wed, 20 Dec 2023 17:33:06 +0300 Subject: [PATCH] feat(version): release 0.24.9 version --- package.json | 2 +- src/contexts/RobotContext.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 53e0fb89..b33450d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.24.8", + "version": "0.24.9", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/contexts/RobotContext.tsx b/src/contexts/RobotContext.tsx index 8a8a1260..0c7eca2a 100644 --- a/src/contexts/RobotContext.tsx +++ b/src/contexts/RobotContext.tsx @@ -181,9 +181,9 @@ export default ({ children }: any) => { // ROS Bridge Connector useEffect(() => { const rosClient: ROSLIB.Ros | null = + !envApplication && isSettedCookie && - responseRobot?.bridgeIngressEndpoint?.split("://")[0] === "wss" && - !envApplication + responseRobot?.bridgeIngressEndpoint?.split("://")[0] === "wss" ? new ROSLIB.Ros({ url: responseRobot?.bridgeIngressEndpoint, }) @@ -206,7 +206,7 @@ export default ({ children }: any) => { rosClient?.close(); }; // eslint-disable-next-line react-hooks/exhaustive-deps - }, [responseRobot, isSettedCookie]); + }, [isSettedCookie]); // ROS Bridge Connector // ROS Topic Setter