@zeniai/client-epic-state 4.16.93 → 4.16.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -224,15 +224,15 @@ const aiController = (0, toolkit_1.createSlice)({
224
224
  },
225
225
  setSessions(draft, action) {
226
226
  action.payload.forEach((chatSessionPayload) => {
227
+ const { chat_session_id } = chatSessionPayload;
227
228
  // This is to prevent overwriting the session if it is already in state
228
- if (draft.aiControllerByChatSessionId[chatSessionPayload.chat_session_id] == null) {
229
- draft.aiControllerByChatSessionId[chatSessionPayload.chat_session_id] = {
229
+ if (draft.aiControllerByChatSessionId[chat_session_id] == null) {
230
+ draft.aiControllerByChatSessionId[chat_session_id] = {
230
231
  chatSession: toChatSession(chatSessionPayload),
231
232
  questionAnswers: [],
232
233
  };
233
234
  // Clear any existing partial Q&A for this session
234
- draft.partialQuestionAnswers[chatSessionPayload.chat_session_id] =
235
- undefined;
235
+ draft.partialQuestionAnswers[chat_session_id] = undefined;
236
236
  }
237
237
  });
238
238
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.16.93",
3
+ "version": "4.16.95",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",