diff --git a/package.json b/package.json index 9947c101..7e98a2fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.23.7", + "version": "0.23.8", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/components/Connections/Connections.tsx b/src/components/Connections/Connections.tsx index 56b56d51..74462755 100644 --- a/src/components/Connections/Connections.tsx +++ b/src/components/Connections/Connections.tsx @@ -21,7 +21,10 @@ export default function Connections(): ReactElement { }); rosClient.on("connection", () => setIsRosConnected(true)); - rosClient.on("error", () => setIsRosConnected(false)); + rosClient.on( + "error", + () => isRosConnected === null && setIsRosConnected(false), + ); } function closeRosConnection() {