Skip to content

Commit f9075ca

Browse files
authored
fix: Hide agent status when a workspace is stopped (#4185)
Fixes #4033.
1 parent b64f624 commit f9075ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/components/Resources/Resources.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,14 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
9898
{
9999
/* If there is no agent, just display the resource name */
100100
}
101-
if (!agent) {
101+
if (!agent || workspace.latest_build.transition === "stop") {
102102
return (
103103
<TableRow key={`${resource.id}-${agentIndex}`}>
104104
<TableCell>{resourceName}</TableCell>
105105
<TableCell colSpan={3}></TableCell>
106106
</TableRow>
107107
)
108108
}
109-
110109
const { displayVersion, outdated } = getDisplayVersionStatus(
111110
agent.version,
112111
serverVersion,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy