From 4c986ad1ebd1ce3d45589ccd7d82701952402775 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Tue, 17 Feb 2026 12:52:58 +0000 Subject: [PATCH] fix(docs): Fix loop to iterate over results.runs (#3077) To get access to the runs from `batch.triggerAndWait` use `results.runs` --- docs/triggering.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/triggering.mdx b/docs/triggering.mdx index 602838e4f..874779de6 100644 --- a/docs/triggering.mdx +++ b/docs/triggering.mdx @@ -541,7 +541,7 @@ export const parentTask = task({ { id: "child-task-2", payload: { bar: 42 } }, // 👈 The payload is typed correctly based on the task `id` ]); - for (const result of results) { + for (const result of results.runs) { if (result.ok) { // 👇 Narrow the type of the result based on the taskIdentifier switch (result.taskIdentifier) {