@zeniai/client-epic-state 5.1.46 → 5.1.47
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.
|
@@ -253,10 +253,10 @@ const onboardingCustomerView = createSlice({
|
|
|
253
253
|
},
|
|
254
254
|
aiAgentsActivationCountsUpdated: {
|
|
255
255
|
reducer(draft, action) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
// Merge only present fields — a follow-up push sends absent fields as
|
|
257
|
+
// nullish, which would clobber previously-received counts if spread in.
|
|
258
|
+
const definedCounts = Object.fromEntries(Object.entries(action.payload).filter(([, value]) => value != null));
|
|
259
|
+
Object.assign(draft.aiAgentsActivation.counts, definedCounts);
|
|
260
260
|
},
|
|
261
261
|
prepare(payload) {
|
|
262
262
|
return { payload };
|
|
@@ -258,10 +258,10 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
|
|
|
258
258
|
},
|
|
259
259
|
aiAgentsActivationCountsUpdated: {
|
|
260
260
|
reducer(draft, action) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
// Merge only present fields — a follow-up push sends absent fields as
|
|
262
|
+
// nullish, which would clobber previously-received counts if spread in.
|
|
263
|
+
const definedCounts = Object.fromEntries(Object.entries(action.payload).filter(([, value]) => value != null));
|
|
264
|
+
Object.assign(draft.aiAgentsActivation.counts, definedCounts);
|
|
265
265
|
},
|
|
266
266
|
prepare(payload) {
|
|
267
267
|
return { payload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.47",
|
|
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",
|