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 53f267b commit 0c7abeeCopy full SHA for 0c7abee
site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx
@@ -172,8 +172,7 @@ export const WorkspaceReadyPage: FC<WorkspaceReadyPageProps> = ({
172
refetchInterval: (data) => {
173
const expectedScriptTimingsCount = workspace.latest_build.resources
174
.flatMap((r) => r.agents)
175
- .flatMap((a) => a?.scripts)
176
- .filter((s) => s !== undefined).length;
+ .flatMap((a) => a?.scripts ?? []).length;
177
const currentScriptTimingsCount = data?.agent_script_timings?.length ?? 0;
178
return expectedScriptTimingsCount === currentScriptTimingsCount
179
? false
0 commit comments