Skip to content

Commit a5bd8ba

Browse files
authored
Merge pull request Expensify#69678 from Eskalifer1/fix/68987
fix: do not show notFound page on report change from searchView
2 parents 93b1ced + bcc5559 commit a5bd8ba

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/pages/Search/SearchTransactionsChangeReport.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, {useMemo} from 'react';
2+
import {InteractionManager} from 'react-native';
23
import {useSearchContext} from '@components/Search/SearchContext';
34
import type {ListItem} from '@components/SelectionList/types';
45
import useOnyx from '@hooks/useOnyx';
@@ -39,7 +40,10 @@ function SearchTransactionsChangeReport() {
3940

4041
const reportNextStep = allReportNextSteps?.[`${ONYXKEYS.COLLECTION.NEXT_STEP}${item.value}`];
4142
changeTransactionsReport(selectedTransactionsKeys, item.value, allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${item.policyID}`], reportNextStep);
42-
clearSelectedTransactions();
43+
44+
InteractionManager.runAfterInteractions(() => {
45+
clearSelectedTransactions();
46+
});
4347

4448
Navigation.goBack();
4549
};

0 commit comments

Comments
 (0)