From 92c8abe65d4dc47f066cf758c6f9bae7d3f1b187 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Tue, 25 Feb 2025 16:23:35 +0530 Subject: [PATCH] (fix:sharedConv) makes sure that response state updates --- frontend/src/conversation/sharedConversationSlice.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/conversation/sharedConversationSlice.ts b/frontend/src/conversation/sharedConversationSlice.ts index 3140b418..bef306dd 100644 --- a/frontend/src/conversation/sharedConversationSlice.ts +++ b/frontend/src/conversation/sharedConversationSlice.ts @@ -159,14 +159,9 @@ export const sharedConversationSlice = createSlice({ action: PayloadAction<{ index: number; query: Partial }>, ) { const { index, query } = action.payload; - if (query.response != undefined) { + if (query.response !== undefined) { state.queries[index].response = (state.queries[index].response || '') + query.response; - } else { - state.queries[index] = { - ...state.queries[index], - ...query, - }; } }, updateToolCalls(