From 1f7a380548360b22ebcf01f79e8371fd166ccedf Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Wed, 19 Mar 2025 20:54:15 +0100 Subject: [PATCH] Fix typo --- libs/sdk-js/src/client.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 433834229..1821ef322 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -514,15 +514,13 @@ export class ThreadsClient< }; if (payload?.fromSupersteps) { - json.supersteps = { - supersteps: payload.fromSupersteps.map((s) => ({ - updates: s.updates.map((u) => ({ - values: u.values, - command: u.command, - as_node: u.asNode, - })), + json.supersteps = payload.fromSupersteps.map((s) => ({ + updates: s.updates.map((u) => ({ + values: u.values, + command: u.command, + as_node: u.asNode, })), - }; + })); return this.fetch>(`/threads/state/bulk`, { method: "POST",