Skip to content

Commit 0c7abee

Browse files
committed
Apply review suggestions
1 parent 53f267b commit 0c7abee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ export const WorkspaceReadyPage: FC<WorkspaceReadyPageProps> = ({
172172
refetchInterval: (data) => {
173173
const expectedScriptTimingsCount = workspace.latest_build.resources
174174
.flatMap((r) => r.agents)
175-
.flatMap((a) => a?.scripts)
176-
.filter((s) => s !== undefined).length;
175+
.flatMap((a) => a?.scripts ?? []).length;
177176
const currentScriptTimingsCount = data?.agent_script_timings?.length ?? 0;
178177
return expectedScriptTimingsCount === currentScriptTimingsCount
179178
? false

0 commit comments

Comments
 (0)