Skip to content

Commit 5f3b358

Browse files
committed
Update @layercode/js-sdk to version 2.1.7 and bump react-sdk version to 2.1.8
1 parent 096a171 commit 5f3b358

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Layercode",
33
"license": "MIT",
44
"name": "@layercode/react-sdk",
5-
"version": "2.1.6",
5+
"version": "2.1.8",
66
"description": "Layercode React SDK for integrating with React applications",
77
"type": "module",
88
"main": "./dist/index.js",
@@ -33,7 +33,7 @@
3333
"react"
3434
],
3535
"dependencies": {
36-
"@layercode/js-sdk": "^2.1.6"
36+
"@layercode/js-sdk": "^2.1.7"
3737
},
3838
"peerDependencies": {
3939
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@@ -50,4 +50,4 @@
5050
"rollup": "^4.42.0",
5151
"typescript": "^5.8.3"
5252
}
53-
}
53+
}

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ const useLayercodeAgent = (
138138
clientRef.current = null;
139139
}
140140

141-
const nextConversationId =
142-
conversationIdRef.current !== undefined
143-
? conversationIdRef.current
144-
: internalConversationId ?? null;
141+
const nextConversationId = conversationIdRef.current !== undefined ? conversationIdRef.current : internalConversationId ?? null;
145142

146143
const client = createClient(nextConversationId ?? null);
147144

0 commit comments

Comments
 (0)