@zeniai/client-epic-state 5.1.85-betaRD2 → 5.1.85
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.
- package/lib/entity/aiCfo/aiCfoReducer.js +1 -3
- package/lib/entity/company/companyReducer.js +1 -1
- package/lib/entity/tenant/tenantReducer.js +1 -1
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +1 -3
- package/lib/esm/entity/company/companyReducer.js +1 -1
- package/lib/esm/entity/tenant/tenantReducer.js +1 -1
- package/package.json +1 -1
|
@@ -730,9 +730,7 @@ const aiCfo = (0, toolkit_1.createSlice)({
|
|
|
730
730
|
},
|
|
731
731
|
extraReducers: (builder) => {
|
|
732
732
|
builder.addCase(rootActions_1.clearAll, (draft) => {
|
|
733
|
-
draft.
|
|
734
|
-
draft.partialQuestionAnswers = {};
|
|
735
|
-
draft.syntheticAnswersByChatSessionId = {};
|
|
733
|
+
Object.assign(draft, exports.initialAiCfoState);
|
|
736
734
|
});
|
|
737
735
|
},
|
|
738
736
|
});
|
|
@@ -202,7 +202,7 @@ const company = (0, toolkit_1.createSlice)({
|
|
|
202
202
|
},
|
|
203
203
|
extraReducers: (builder) => {
|
|
204
204
|
builder.addCase(rootActions_1.clearAll, (draft, action) => {
|
|
205
|
-
//
|
|
205
|
+
// `=== false` rather than `!`: the flag is required at the type level, but an
|
|
206
206
|
// untyped or stale-build caller doing `clearAll()` would send `undefined`,
|
|
207
207
|
// and defaulting that to "wipe" is the dangerous direction. Keep is safe.
|
|
208
208
|
if (action.payload.keepTenantCompanyState === false) {
|
|
@@ -921,7 +921,7 @@ const tenant = (0, toolkit_1.createSlice)({
|
|
|
921
921
|
},
|
|
922
922
|
extraReducers: (builder) => {
|
|
923
923
|
builder.addCase(rootActions_1.clearAll, (draft, action) => {
|
|
924
|
-
//
|
|
924
|
+
// `=== false` rather than `!`: the flag is required at the type level, but an
|
|
925
925
|
// untyped or stale-build caller doing `clearAll()` would send `undefined`,
|
|
926
926
|
// and defaulting that to "wipe" is the dangerous direction. Keep is safe.
|
|
927
927
|
if (action.payload.keepTenantCompanyState === false) {
|
|
@@ -725,9 +725,7 @@ const aiCfo = createSlice({
|
|
|
725
725
|
},
|
|
726
726
|
extraReducers: (builder) => {
|
|
727
727
|
builder.addCase(clearAll, (draft) => {
|
|
728
|
-
draft
|
|
729
|
-
draft.partialQuestionAnswers = {};
|
|
730
|
-
draft.syntheticAnswersByChatSessionId = {};
|
|
728
|
+
Object.assign(draft, initialAiCfoState);
|
|
731
729
|
});
|
|
732
730
|
},
|
|
733
731
|
});
|
|
@@ -195,7 +195,7 @@ const company = createSlice({
|
|
|
195
195
|
},
|
|
196
196
|
extraReducers: (builder) => {
|
|
197
197
|
builder.addCase(clearAll, (draft, action) => {
|
|
198
|
-
//
|
|
198
|
+
// `=== false` rather than `!`: the flag is required at the type level, but an
|
|
199
199
|
// untyped or stale-build caller doing `clearAll()` would send `undefined`,
|
|
200
200
|
// and defaulting that to "wipe" is the dangerous direction. Keep is safe.
|
|
201
201
|
if (action.payload.keepTenantCompanyState === false) {
|
|
@@ -909,7 +909,7 @@ const tenant = createSlice({
|
|
|
909
909
|
},
|
|
910
910
|
extraReducers: (builder) => {
|
|
911
911
|
builder.addCase(clearAll, (draft, action) => {
|
|
912
|
-
//
|
|
912
|
+
// `=== false` rather than `!`: the flag is required at the type level, but an
|
|
913
913
|
// untyped or stale-build caller doing `clearAll()` would send `undefined`,
|
|
914
914
|
// and defaulting that to "wipe" is the dangerous direction. Keep is safe.
|
|
915
915
|
if (action.payload.keepTenantCompanyState === false) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.85
|
|
3
|
+
"version": "5.1.85",
|
|
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",
|