Skip to content

Commit

Permalink
feat(version): release 0.25.5 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Dec 21, 2023
1 parent 4aa9d5d commit ee33398
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.25.4",
"version": "0.25.6",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
10 changes: 5 additions & 5 deletions src/components/Connections/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useRobot from "../../hooks/useRobot";
import { ReactElement, useEffect } from "react";

export default function Connections(): ReactElement {
const { responseRobot, isSettedCookie, connectionsReducer } = useRobot();
const { responseRobot, connectionsReducer } = useRobot();
const { keycloak } = useKeycloak();

useEffect(() => {
Expand Down Expand Up @@ -38,9 +38,9 @@ export default function Connections(): ReactElement {
/>
<StateCell
state={
connectionsReducer?.vdi === null
connectionsReducer?.virtualIDE === null
? "Waiting"
: connectionsReducer?.vdi
: connectionsReducer?.virtualIDE
? "Connected"
: "Warning"
}
Expand All @@ -54,9 +54,9 @@ export default function Connections(): ReactElement {
/>
<StateCell
state={
isSettedCookie === undefined
connectionsReducer?.physicalIDE === undefined
? "Waiting"
: isSettedCookie
: connectionsReducer?.physicalIDE
? "Connected"
: "Warning"
}
Expand Down
5 changes: 3 additions & 2 deletions src/contexts/RobotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import useFunctions from "../hooks/useFunctions";
import { useParams } from "react-router-dom";
import useMain from "../hooks/useMain";
import ROSLIB from "roslib";
import axios, { AxiosResponse } from "axios";
import { AxiosResponse } from "axios";
import axiosInterceptorOpenApi from "../middlewares/axios.interceptor.openapi";

export const RobotContext: any = createContext<any>(null);

Expand Down Expand Up @@ -319,7 +320,7 @@ export default ({ children }: any) => {
useEffect(() => {
try {
if (isSettedCookie && isProduction) {
axios
axiosInterceptorOpenApi
.get(responseRobot?.ideIngressEndpoint + "healthz")
.then((response: AxiosResponse<any>) => {
console.log(response.data);
Expand Down

0 comments on commit ee33398

Please sign in to comment.