@zeniai/client-epic-state 4.19.77-betaAK7 → 4.19.77-betaAK8

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.

Potentially problematic release.


This version of @zeniai/client-epic-state might be problematic. Click here for more details.

@@ -3,7 +3,7 @@ import { catchError, filter, mergeMap } from 'rxjs/operators';
3
3
  import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
4
4
  import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
5
5
  import { getCurrentTenant } from '../../../entity/tenant/tenantSelector';
6
- import { removeTransactionCategorization, updateTransactionIsMiscategorized, } from '../../../entity/transaction/transactionReducer';
6
+ import { updateTransactionIsMiscategorized } from '../../../entity/transaction/transactionReducer';
7
7
  import { createZeniAPIStatus, isSuccessStatus, } from '../../../responsePayload';
8
8
  import { updateStatusForTransactionNotMiscategorizedUpdateForCategorization, updateTotalCountForTransactionCategorization, } from '../../expenseAutomationView/reducers/transactionsViewReducer';
9
9
  import { markTransactionAsNotMiscategorized, updateStatusConsolidatedSaveTransactionDetail, updateStatusForTransactionNotMiscategorizedUpdate, } from '../transactionDetailReducer';
@@ -37,11 +37,11 @@ export const markTransactionAsNotMiscategorizedEpic = (actions$, state$, zeniAPI
37
37
  ? []
38
38
  : [txnId];
39
39
  actions.push(updateStatusForTransactionNotMiscategorizedUpdateForCategorization(selectedTransactionCategorizationTab, [txnId], removeIdsFromPeriod, selectedPeriod, 'Completed'));
40
- if (!hasAutoLines) {
41
- actions.push(removeTransactionCategorization({
42
- transactionIds: [txnId],
43
- }));
44
- }
40
+ // NOTE: Do NOT dispatch removeTransactionCategorization here.
41
+ // That action sets transactionById[txnId] = undefined, removing the
42
+ // entity from the store. On the detail page the user is still viewing
43
+ // this transaction, so removing it causes an infinite loading skeleton.
44
+ // The expense automation list view's own epic handles list cleanup.
45
45
  if (removeIdsFromPeriod.length > 0) {
46
46
  const totalCountByPeriod = uiState.totalCount[toMonthYearPeriodId(selectedPeriod)];
47
47
  const updatedTotalCount = totalCountByPeriod === 0