diff --git a/libs/sdk-js/package.json b/libs/sdk-js/package.json index 988823e3f..5fe09ade2 100644 --- a/libs/sdk-js/package.json +++ b/libs/sdk-js/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/langgraph-sdk", - "version": "0.0.13", + "version": "0.0.14", "description": "Client library for interacting with the LangGraph API", "type": "module", "packageManager": "yarn@1.22.19", diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 6ceb5333b..07125ee9f 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -1050,11 +1050,14 @@ export class StoreClient extends BaseClient { const response = await this.fetch("/store/items", { params: { namespace: namespace.join("."), key }, }); - return { - ...response, - createdAt: response.created_at, - updatedAt: response.updated_at, - }; + + return response + ? { + ...response, + createdAt: response.created_at, + updatedAt: response.updated_at, + } + : null; } /**