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 5967030 commit cf49d80Copy full SHA for cf49d80
libs/langgraph/src/pregel/index.ts
@@ -1262,7 +1262,7 @@ export class Pregel<
1262
1263
// We want to both clone a checkpoint and update state in one go.
1264
// Reuse the same task ID if possible.
1265
- if (Array.isArray(values)) {
+ if (Array.isArray(values) && values.length > 0) {
1266
// figure out the task IDs for the next update checkpoint
1267
const nextTasks = _prepareNextTasks(
1268
nextCheckpoint,
0 commit comments