@zeniai/client-epic-state 4.12.6 → 4.12.7

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.
@@ -12,7 +12,9 @@ const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.
12
12
  const { reimbursementId, signedInUserId, isManuallyTriggered } = action.payload;
13
13
  const { editRemiDetailViewState, reimbursementState } = state$.value;
14
14
  let lines = [];
15
- let createdByUserId = '';
15
+ const createdByUserId = reimbursementId != null
16
+ ? (_a = reimbursementState.reimbursementById[reimbursementId]) === null || _a === void 0 ? void 0 : _a.createdBy
17
+ : signedInUserId;
16
18
  //edit reimbursememnt case
17
19
  if (isManuallyTriggered === true) {
18
20
  //get lines detail from editRemiDetailViewState
@@ -23,10 +25,6 @@ const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.
23
25
  .remiDetailLocalData.updatesByLineId).filter((value) => value != null)
24
26
  : Object.values(editRemiDetailViewState.newRemiState.remiDetailLocalData
25
27
  .updatesByLineId).filter((value) => value != null);
26
- createdByUserId =
27
- reimbursementId != null
28
- ? (_a = reimbursementState.reimbursementById[reimbursementId]) === null || _a === void 0 ? void 0 : _a.createdBy
29
- : signedInUserId;
30
28
  }
31
29
  //reimbursement detail page case
32
30
  else if (reimbursementId != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.6",
3
+ "version": "4.12.7",
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",