Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc37010

Browse files
committed
:^)
1 parent 3c353b4 commit cc37010

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

site/src/pages/WorkspacePage/WorkspaceScheduleControls.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { render, screen } from "@testing-library/react";
2+
import { type FC } from "react";
23
import { QueryClient, QueryClientProvider } from "react-query";
34
import { RouterProvider, createMemoryRouter } from "react-router-dom";
45
import userEvent from "@testing-library/user-event";
@@ -9,7 +10,7 @@ import { ThemeProvider } from "contexts/ThemeProvider";
910
import { MockTemplate, MockWorkspace } from "testHelpers/entities";
1011
import { WorkspaceScheduleControls } from "./WorkspaceScheduleControls";
1112

12-
const Wrapper = () => {
13+
const Wrapper: FC = () => {
1314
return (
1415
<WorkspaceScheduleControls
1516
workspace={MockWorkspace}

site/src/utils/schedule.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export const autostopDisplay = (
9797
} => {
9898
const ttl = workspace.ttl_ms;
9999

100+
// workspace.latest_build.resources.map((resource) => resource.agents?.map((agent) => agent.
101+
100102
if (isWorkspaceOn(workspace) && true) {
101103
return {
102104
message: "Connected with SSH",

0 commit comments

Comments
 (0)