File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ export const Workspace: FC<WorkspaceProps> = ({
110
110
( r ) => resourceOptionValue ( r ) === resourcesNav . value ,
111
111
) ;
112
112
113
- const shouldDisplayBuildLogs =
114
- ( buildLogs ?? [ ] ) . length > 0 && workspace . latest_build . status !== "running" ;
115
-
113
+ const workspaceRunning = workspace . latest_build . status === "running" ;
114
+ const haveBuildLogs = ( buildLogs ?? [ ] ) . length > 0 ;
116
115
const provisionersHealthy =
117
116
( workspace . latest_build . matched_provisioners ?. available ?? 0 ) > 0 ;
117
+ const shouldDisplayBuildLogs = haveBuildLogs && ! workspaceRunning ;
118
118
const shouldShowProvisionerAlert =
119
- ! shouldDisplayBuildLogs && ! provisionersHealthy ;
119
+ ! workspaceRunning && ! haveBuildLogs && ! provisionersHealthy ;
120
120
121
121
return (
122
122
< div
You can’t perform that action at this time.
0 commit comments