@zeniai/client-epic-state 5.0.84-betaJK7 → 5.0.84-betaJK8

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.
@@ -14,6 +14,7 @@ export const fetchTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe(
14
14
  const taskActions = [];
15
15
  const state = state$.value;
16
16
  const isTaskListFetched = state.taskListState.fetchState === 'Completed';
17
+ console.log('jklogs ~ fetchTaskDetailEpic ~ isTaskListFetched:', isTaskListFetched);
17
18
  const taskDetail = recordGet(state.taskDetailState.editTaskStateById, taskId, undefined);
18
19
  if (cacheOverride === true) {
19
20
  taskActions.push(removeTaskDetail(taskId));
@@ -54,7 +54,7 @@ const taskDetailView = createSlice({
54
54
  updateEditTaskFetchStatus(draft, action) {
55
55
  const { taskId, fetchState, error } = action.payload;
56
56
  draft.editTaskStateById[taskId] = {
57
- ...draft.editTaskStateById[taskId],
57
+ ...(draft.editTaskStateById[taskId] ?? initialTaskDetail),
58
58
  fetchTaskStatus: {
59
59
  fetchState,
60
60
  error: fetchState === 'Error' ? error : undefined,
@@ -61,7 +61,7 @@ const taskDetailView = (0, toolkit_1.createSlice)({
61
61
  updateEditTaskFetchStatus(draft, action) {
62
62
  const { taskId, fetchState, error } = action.payload;
63
63
  draft.editTaskStateById[taskId] = {
64
- ...draft.editTaskStateById[taskId],
64
+ ...(draft.editTaskStateById[taskId] ?? taskDetail_1.initialTaskDetail),
65
65
  fetchTaskStatus: {
66
66
  fetchState,
67
67
  error: fetchState === 'Error' ? error : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.84-betaJK7",
3
+ "version": "5.0.84-betaJK8",
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
  "module": "lib/esm/index.js",