@zeniai/client-epic-state 5.1.39-betaAK1 → 5.1.40-betaAK0
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/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +3 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +3 -2
- package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export const fetchTransactionCategorizationViewEpic = (actions$, state$) => acti
|
|
|
12
12
|
const { selectedTab, cacheOverride, keepExistingListItems, pageToken, period, refreshViewInBackground, searchString, resetListItems, isUncategorizedExpenseCategoryEnabled, } = action.payload;
|
|
13
13
|
const updateActions = [];
|
|
14
14
|
const { expenseAutomationTransactionsViewState } = state$.value;
|
|
15
|
-
const { fetchState, transactionIdsBySelectedPeriod } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
15
|
+
const { fetchState, transactionIdsBySelectedPeriod, uiState } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
16
16
|
const monthYearPeriod = {
|
|
17
17
|
month: period.start.month,
|
|
18
18
|
year: period.start.year,
|
|
@@ -43,7 +43,8 @@ export const fetchTransactionCategorizationViewEpic = (actions$, state$) => acti
|
|
|
43
43
|
if (searchString === '' ||
|
|
44
44
|
cacheOverride === true ||
|
|
45
45
|
fetchState === 'Not-Started' ||
|
|
46
|
-
transactionIds.length === 0
|
|
46
|
+
transactionIds.length === 0 ||
|
|
47
|
+
uiState.searchString !== '') {
|
|
47
48
|
updateActions.push(fetchTransactionCategorization(selectedTab, period, cacheOverride, keepExistingListItems, searchString, pageToken, refreshViewInBackground, resetListItems, isUncategorizedExpenseCategoryEnabled));
|
|
48
49
|
}
|
|
49
50
|
// On the initial load of a tab (searchString undefined = non-search fetch),
|
|
@@ -15,7 +15,7 @@ const fetchTransactionCategorizationViewEpic = (actions$, state$) => actions$.pi
|
|
|
15
15
|
const { selectedTab, cacheOverride, keepExistingListItems, pageToken, period, refreshViewInBackground, searchString, resetListItems, isUncategorizedExpenseCategoryEnabled, } = action.payload;
|
|
16
16
|
const updateActions = [];
|
|
17
17
|
const { expenseAutomationTransactionsViewState } = state$.value;
|
|
18
|
-
const { fetchState, transactionIdsBySelectedPeriod } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
18
|
+
const { fetchState, transactionIdsBySelectedPeriod, uiState } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTab];
|
|
19
19
|
const monthYearPeriod = {
|
|
20
20
|
month: period.start.month,
|
|
21
21
|
year: period.start.year,
|
|
@@ -46,7 +46,8 @@ const fetchTransactionCategorizationViewEpic = (actions$, state$) => actions$.pi
|
|
|
46
46
|
if (searchString === '' ||
|
|
47
47
|
cacheOverride === true ||
|
|
48
48
|
fetchState === 'Not-Started' ||
|
|
49
|
-
transactionIds.length === 0
|
|
49
|
+
transactionIds.length === 0 ||
|
|
50
|
+
uiState.searchString !== '') {
|
|
50
51
|
updateActions.push((0, transactionsViewReducer_1.fetchTransactionCategorization)(selectedTab, period, cacheOverride, keepExistingListItems, searchString, pageToken, refreshViewInBackground, resetListItems, isUncategorizedExpenseCategoryEnabled));
|
|
51
52
|
}
|
|
52
53
|
// On the initial load of a tab (searchString undefined = non-search fetch),
|
package/lib/view/invoicing/invoicingTransactionListView/invoicingTransactionListViewSelector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
1
|
import { InvoicingTransaction } from '../../../entity/invoicing/invoicingTransaction/invoicingTransactionState';
|
|
2
|
+
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
3
|
import { RootState } from '../../../reducer';
|
|
4
4
|
import { InvoicingListSort } from '../invoicingApiHelper';
|
|
5
5
|
import { InvoicingTransactionColumnConfig, InvoicingTransactionFilters, InvoicingTransactionTabId } from './invoicingTransactionListViewState';
|
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.40-betaAK0",
|
|
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",
|