(fix:sharedConv) makes sure that response state updates

This commit is contained in:
ManishMadan2882
2025-02-25 16:23:35 +05:30
parent c730777134
commit 92c8abe65d

View File

@@ -159,14 +159,9 @@ export const sharedConversationSlice = createSlice({
action: PayloadAction<{ index: number; query: Partial<Query> }>,
) {
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(