Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Hide agent status when a workspace is stopped
Fixes #4033.
  • Loading branch information
kylecarbs committed Sep 23, 2022
commit 39522a41171972d6280ac93e8a802cd56e6ba303
3 changes: 1 addition & 2 deletions site/src/components/Resources/Resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ 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>
<TableCell colSpan={3}></TableCell>
</TableRow>
)
}

const { displayVersion, outdated } = getDisplayVersionStatus(
agent.version,
serverVersion,
Expand Down