Skip to content

Commit 4c986ad

Browse files
authored
fix(docs): Fix loop to iterate over results.runs (#3077)
To get access to the runs from `batch.triggerAndWait` use `results.runs`
1 parent 7af789b commit 4c986ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/triggering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export const parentTask = task({
541541
{ id: "child-task-2", payload: { bar: 42 } }, // 👈 The payload is typed correctly based on the task `id`
542542
]);
543543

544-
for (const result of results) {
544+
for (const result of results.runs) {
545545
if (result.ok) {
546546
// 👇 Narrow the type of the result based on the taskIdentifier
547547
switch (result.taskIdentifier) {

0 commit comments

Comments
 (0)