Skip to content

Commit 7c2f879

Browse files
committed
feedback
1 parent 7c5050c commit 7c2f879

File tree

1 file changed

+5
-1
lines changed
  • app/web_ui/src/routes/(app)/specs/[project_id]/[task_id]

1 file changed

+5
-1
lines changed

app/web_ui/src/routes/(app)/specs/[project_id]/[task_id]/spec_utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export async function checkDefaultRunConfigHasTools(
6363
project_id: string,
6464
task: Task,
6565
): Promise<boolean> {
66-
if (!task.id || !task.default_run_config_id) {
66+
if (!task.id) {
67+
throw new Error("Task ID is required")
68+
}
69+
70+
if (!task.default_run_config_id) {
6771
return false
6872
}
6973

0 commit comments

Comments
 (0)