Skip to content

Commit f9075ca

Browse files
authored
fix: Hide agent status when a workspace is stopped (coder#4185)
Fixes coder#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)