Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Apply review suggestions
  • Loading branch information
BrunoQuaresma committed Dec 3, 2024
commit 0c7abeeeb93cc61af97986428c17a237ed82053c
3 changes: 1 addition & 2 deletions site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ export const WorkspaceReadyPage: FC<WorkspaceReadyPageProps> = ({
refetchInterval: (data) => {
const expectedScriptTimingsCount = workspace.latest_build.resources
.flatMap((r) => r.agents)
.flatMap((a) => a?.scripts)
.filter((s) => s !== undefined).length;
.flatMap((a) => a?.scripts ?? []).length;
const currentScriptTimingsCount = data?.agent_script_timings?.length ?? 0;
return expectedScriptTimingsCount === currentScriptTimingsCount
? false
Expand Down
Loading