@@ -29,7 +34,9 @@ export default function InstanceActionCells({
: "!border-layer-dark-100"
}`}
text={
- data?.state === "running" ? (
+ data?.state === "running" ||
+ envOnPremiseRobot ||
+ envOnPremiseFleet ? (
([]);
useEffect(() => {
+ const workspacesData = workspaces;
+
setGithubWorkspaces([]);
- workspaces?.forEach(async (workspace: any) => {
+ workspacesData?.forEach(async (workspace: any) => {
try {
const response = await axios.get(
workspace?.url.replace(
@@ -32,11 +34,11 @@ export default function WorkspacesCell({
},
]);
} catch (error) {
- // Hata durumunda işlemi burada yönetebilirsiniz
console.error("Error:", error);
}
});
- }, [workspaces]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
return (
@@ -59,7 +61,6 @@ export default function WorkspacesCell({
src="/svg/apps/github.svg"
alt="github"
/>
-
{workspace?.full_name}
diff --git a/src/contexts/FunctionsContext.tsx b/src/contexts/FunctionsContext.tsx
index 7f86cd4b..e0337b98 100644
--- a/src/contexts/FunctionsContext.tsx
+++ b/src/contexts/FunctionsContext.tsx
@@ -1041,10 +1041,6 @@ export default ({ children }: any) => {
responseEnvironment?.payload?.data[0].roboticsClouds[0]
?.cloudInstances[0]?.environments
) {
- console.log(
- responseEnvironment?.payload?.data[0].roboticsClouds[0]
- ?.cloudInstances[0]?.environments
- );
parameters?.setRobotData &&
setRobotData((prevState: any) => {
return {