File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -381,8 +381,8 @@ const useLayercodeAgent = (
381381 const sendClientResponseText = useCallback ( ( text : string ) => {
382382 clientRef . current ?. sendClientResponseText ( text ) ;
383383 } , [ ] ) ;
384- const sendClientResponseData = useCallback ( ( text : string ) => {
385- clientRef . current ?. sendClientResponseData ( text ) ;
384+ const sendClientResponseData = useCallback ( ( data : any ) => {
385+ clientRef . current ?. sendClientResponseData ( data ) ;
386386 } , [ ] ) ;
387387 const connect = useCallback ( async ( ) => {
388388 if ( clientRef . current ) {
@@ -394,7 +394,7 @@ const useLayercodeAgent = (
394394 clientRef . current = null ;
395395 }
396396
397- const nextConversationId = conversationIdRef . current !== undefined ? conversationIdRef . current : internalConversationId ?? null ;
397+ const nextConversationId = conversationIdRef . current !== undefined ? conversationIdRef . current : ( internalConversationId ?? null ) ;
398398
399399 const client = createClient ( nextConversationId ?? null ) ;
400400
You can’t perform that action at this time.
0 commit comments