Skip to content

Commit cf49d80

Browse files
committed
Check
1 parent 5967030 commit cf49d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/langgraph/src/pregel/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ export class Pregel<
12621262

12631263
// We want to both clone a checkpoint and update state in one go.
12641264
// Reuse the same task ID if possible.
1265-
if (Array.isArray(values)) {
1265+
if (Array.isArray(values) && values.length > 0) {
12661266
// figure out the task IDs for the next update checkpoint
12671267
const nextTasks = _prepareNextTasks(
12681268
nextCheckpoint,

0 commit comments

Comments
 (0)