mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-31 12:19:58 +02:00
fix(sdk-js): Fix null item error
This commit is contained in:
@@ -1050,6 +1050,11 @@ export class StoreClient extends BaseClient {
|
||||
const response = await this.fetch<APIItem>("/store/items", {
|
||||
params: { namespace: namespace.join("."), key },
|
||||
});
|
||||
|
||||
if (!response) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
...response,
|
||||
createdAt: response.created_at,
|
||||
|
||||
Reference in New Issue
Block a user