We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b1184 commit 94a64e9Copy full SHA for 94a64e9
site/src/pages/WorkspaceBuildPage/WorkspaceBuildPageView.tsx
@@ -57,9 +57,7 @@ export const WorkspaceBuildPageView: FC<WorkspaceBuildPageViewProps> = ({
57
return <Loader />;
58
}
59
60
- const agents = build.resources
61
- .filter((r) => r.agents)
62
- .flatMap((r) => r.agents) as WorkspaceAgent[];
+ const agents = build.resources.flatMap((r) => r.agents ?? []);
63
const selectedAgent = agents.find((a) => a.id === tab.value);
64
65
return (
0 commit comments