Skip to content

Commit fae3b54

Browse files
committed
Apply Michaels suggestion
1 parent 5d06686 commit fae3b54

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/src/api/api.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,10 +2702,12 @@ class ExperimentalApiMethods {
27022702
queryExpressions.push(`owner:${filter.username}`);
27032703
}
27042704

2705-
const workspaces = await API.getWorkspaces({
2705+
const res = await API.getWorkspaces({
27062706
q: queryExpressions.join(" "),
2707-
}).then((res) =>
2708-
res.workspaces.filter((workspace) => !workspace.is_prebuild),
2707+
});
2708+
// Exclude prebuild workspaces as they are not user-facing.
2709+
const workspaces = res.workspaces.filter(
2710+
(workspace) => !workspace.is_prebuild,
27092711
);
27102712
const prompts = await API.experimental.getAITasksPrompts(
27112713
workspaces.map((workspace) => workspace.latest_build.id),

0 commit comments

Comments
 (0)