diff --git a/libs/sdk-js/package.json b/libs/sdk-js/package.json index ca48475f8..19875b5b1 100644 --- a/libs/sdk-js/package.json +++ b/libs/sdk-js/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/langgraph-sdk", - "version": "0.0.54", + "version": "0.0.56", "description": "Client library for interacting with the LangGraph API", "type": "module", "packageManager": "yarn@1.22.19", diff --git a/libs/sdk-js/src/react/stream.tsx b/libs/sdk-js/src/react/stream.tsx index 09805e9f1..fdd84f740 100644 --- a/libs/sdk-js/src/react/stream.tsx +++ b/libs/sdk-js/src/react/stream.tsx @@ -282,7 +282,7 @@ function getBranchView>( branchByCheckpoint[item.value.checkpoint.checkpoint_id!] = { branch: item.path.join(PATH_SEP), branchOptions: (item.path.length > 0 - ? (pathMap[item.path.at(-2) ?? ROOT_ID] ?? []) + ? pathMap[item.path.at(-2) ?? ROOT_ID] ?? [] : [] ).map((p) => p.join(PATH_SEP)), };