@zeniai/client-epic-state 4.8.62 → 4.8.64

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.
@@ -99,18 +99,15 @@ const scheduleListView = (0, toolkit_1.createSlice)({
99
99
  : draft.scheduleListLocalData.selectedCategoryID;
100
100
  const key = (0, scheduleListTypes_1.getScheduleListKey)(action.payload.tab, selectedCategoryID, selectedTimeframe);
101
101
  const record = draft.byScheduleListKey[key];
102
+ draft.scheduleListLocalData = {
103
+ selectedTimeframe,
104
+ selectedCategoryID,
105
+ };
106
+ draft.selectedCategoryId = selectedCategoryID;
107
+ draft.selectedTimeframe = selectedTimeframe;
102
108
  if (record == null) {
103
109
  draft.byScheduleListKey[key] = Object.assign(Object.assign({}, exports.scheduleListInitialState), { fetchState: 'In-Progress' });
104
110
  }
105
- else {
106
- // if the record is found, then set the selected ID and timeframe.
107
- draft.scheduleListLocalData = {
108
- selectedTimeframe,
109
- selectedCategoryID,
110
- };
111
- draft.selectedCategoryId = selectedCategoryID;
112
- draft.selectedTimeframe = selectedTimeframe;
113
- }
114
111
  },
115
112
  prepare(tab, timeframeAndCategory, cacheOverride = false) {
116
113
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.62",
3
+ "version": "4.8.64",
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",