@zeniai/client-epic-state 5.1.15-betaRD1 → 5.1.15-betaRD2

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.
@@ -305,10 +305,12 @@ const expenseAutomationTransactionsView = createSlice({
305
305
  }
306
306
  },
307
307
  updateTransactionFilters(draft, action) {
308
- const { selectedTab, filters } = action.payload;
309
- // `filters` is non-nullable per the payload type, so no runtime
310
- // null-check is needed dropping it removes a dead defensive branch.
311
- draft.transactionCategorizationView[selectedTab].filters = filters;
308
+ const { filters } = action.payload;
309
+ // Filters are tab-agnostic (payee/category/class/amount), so apply to
310
+ // all tabs so switching tabs after filtering shows consistent results.
311
+ TRANSACTIONS_TABS.forEach((tab) => {
312
+ draft.transactionCategorizationView[tab].filters = filters;
313
+ });
312
314
  },
313
315
  saveTransactionCategorization: {
314
316
  prepare(selectedTab, transactionIds, cotTrackingByTransactionId, isUncategorizedExpenseCategoryEnabled) {
@@ -312,10 +312,12 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
312
312
  }
313
313
  },
314
314
  updateTransactionFilters(draft, action) {
315
- const { selectedTab, filters } = action.payload;
316
- // `filters` is non-nullable per the payload type, so no runtime
317
- // null-check is needed dropping it removes a dead defensive branch.
318
- draft.transactionCategorizationView[selectedTab].filters = filters;
315
+ const { filters } = action.payload;
316
+ // Filters are tab-agnostic (payee/category/class/amount), so apply to
317
+ // all tabs so switching tabs after filtering shows consistent results.
318
+ transactionsViewState_1.TRANSACTIONS_TABS.forEach((tab) => {
319
+ draft.transactionCategorizationView[tab].filters = filters;
320
+ });
319
321
  },
320
322
  saveTransactionCategorization: {
321
323
  prepare(selectedTab, transactionIds, cotTrackingByTransactionId, isUncategorizedExpenseCategoryEnabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.15-betaRD1",
3
+ "version": "5.1.15-betaRD2",
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",