@@ -5,7 +5,6 @@ import type { Workspace, WorkspaceStatus } from "api/typesGenerated";
5
5
import { Button } from "components/Button/Button" ;
6
6
import { Loader } from "components/Loader/Loader" ;
7
7
import { Margins } from "components/Margins/Margins" ;
8
- import { Spinner } from "components/Spinner/Spinner" ;
9
8
import { useWorkspaceBuildLogs } from "hooks/useWorkspaceBuildLogs" ;
10
9
import { ArrowLeftIcon , RotateCcwIcon } from "lucide-react" ;
11
10
import { AI_PROMPT_PARAMETER_NAME , type Task } from "modules/tasks/tasks" ;
@@ -148,7 +147,7 @@ const TaskPage = () => {
148
147
</ div >
149
148
</ div >
150
149
) ;
151
- } else if ( terminatedStatuses . includes ( task . workspace . latest_build . status ) ) {
150
+ } else if ( task . workspace . latest_build . status !== "running" ) {
152
151
content = (
153
152
< Margins >
154
153
< div className = "w-full min-h-80 flex items-center justify-center" >
@@ -170,20 +169,6 @@ const TaskPage = () => {
170
169
</ div >
171
170
</ Margins >
172
171
) ;
173
- } else if ( ! task . workspace . latest_app_status ) {
174
- content = (
175
- < div className = "w-full min-h-80 flex items-center justify-center" >
176
- < div className = "flex flex-col items-center" >
177
- < Spinner loading className = "mb-4" />
178
- < h3 className = "m-0 font-medium text-content-primary text-base" >
179
- Running your task
180
- </ h3 >
181
- < span className = "text-content-secondary text-sm" >
182
- The status should be available soon
183
- </ span >
184
- </ div >
185
- </ div >
186
- ) ;
187
172
} else {
188
173
content = < TaskApps task = { task } /> ;
189
174
}
0 commit comments