@zeniai/client-epic-state 4.19.84-betaVR2 → 4.19.84-betaVR3
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/missingReceipts/fetchMoreBatchDetailsEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +1 -1
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -1
- package/package.json +2 -2
package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createZeniAPIStatus } from '../../../../responsePayload';
|
|
|
6
6
|
import { filterBatchListItemsForBatchDetailsFetch } from '../../payload/missingReceiptsPayload';
|
|
7
7
|
import { fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, } from '../../reducers/missingReceiptsViewReducer';
|
|
8
8
|
import { fetchBatchDetailsByIds } from './fetchMultipleBatchDetailsEpic';
|
|
9
|
-
const MORE_BATCH_PAGE_SIZE =
|
|
9
|
+
const MORE_BATCH_PAGE_SIZE = 5;
|
|
10
10
|
export const fetchMoreBatchDetailsEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchMoreBatchDetails.match),
|
|
11
11
|
/** One page at a time — avoids duplicate loads if IO + scroll fallback both fire. */
|
|
12
12
|
exhaustMap(() => {
|
package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js
CHANGED
|
@@ -4,7 +4,7 @@ import { updateTransactions } from '../../../../entity/transaction/transactionRe
|
|
|
4
4
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
5
5
|
import { extractTransactionPayloadsFromBatchFiles, filterBatchListItemsForBatchDetailsFetch, isBatchDetailsApiStatusCompleted, shouldFetchBatchDetailsForBatchId, toBatchDetails, } from '../../payload/missingReceiptsPayload';
|
|
6
6
|
import { batchDetailFetchFailed, fetchBulkUploadBatchDetails, fetchBulkUploadBatchesSuccess, fetchMoreBatchDetailsComplete, setInitialBatchDetailsLoading, storeBatchDetails, } from '../../reducers/missingReceiptsViewReducer';
|
|
7
|
-
const INITIAL_BATCH_PAGE_SIZE =
|
|
7
|
+
const INITIAL_BATCH_PAGE_SIZE = 5;
|
|
8
8
|
export function fetchBatchDetailsByIds(batchIds, zeniAPI) {
|
|
9
9
|
if (batchIds.length === 0) {
|
|
10
10
|
return EMPTY;
|
|
@@ -352,7 +352,7 @@ const expenseAutomationMissingReceiptsView = createSlice({
|
|
|
352
352
|
if (originalStatus === 'no_match') {
|
|
353
353
|
details.summary.noMatch = Math.max(0, details.summary.noMatch - 1);
|
|
354
354
|
}
|
|
355
|
-
else {
|
|
355
|
+
else if (originalStatus === 'un_matched') {
|
|
356
356
|
details.summary.possibleMatches = Math.max(0, details.summary.possibleMatches - 1);
|
|
357
357
|
}
|
|
358
358
|
}
|