fix: Hide agent status when a workspace is stopped (#4185)

Fixes #4033.
This commit is contained in:
Kyle Carberry
2022-09-23 21:36:33 +00:00
committed by GitHub
parent b64f624d17
commit f9075cab0e
+1 -2
View File
@@ -98,7 +98,7 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
{
/* If there is no agent, just display the resource name */
}
if (!agent) {
if (!agent || workspace.latest_build.transition === "stop") {
return (
<TableRow key={`${resource.id}-${agentIndex}`}>
<TableCell>{resourceName}</TableCell>
@@ -106,7 +106,6 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
</TableRow>
)
}
const { displayVersion, outdated } = getDisplayVersionStatus(
agent.version,
serverVersion,