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 5d06686 commit fae3b54Copy full SHA for fae3b54
site/src/api/api.ts
@@ -2702,10 +2702,12 @@ class ExperimentalApiMethods {
2702
queryExpressions.push(`owner:${filter.username}`);
2703
}
2704
2705
- const workspaces = await API.getWorkspaces({
+ const res = await API.getWorkspaces({
2706
q: queryExpressions.join(" "),
2707
- }).then((res) =>
2708
- res.workspaces.filter((workspace) => !workspace.is_prebuild),
+ });
+ // Exclude prebuild workspaces as they are not user-facing.
2709
+ const workspaces = res.workspaces.filter(
2710
+ (workspace) => !workspace.is_prebuild,
2711
);
2712
const prompts = await API.experimental.getAITasksPrompts(
2713
workspaces.map((workspace) => workspace.latest_build.id),
0 commit comments