File tree Expand file tree Collapse file tree
src/pages/iou/request/step Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import { InteractionManager } from 'react-native' ;
23import { useSearchContext } from '@components/Search/SearchContext' ;
34import type { ListItem } from '@components/SelectionList/types' ;
45import useOnyx from '@hooks/useOnyx' ;
@@ -42,12 +43,14 @@ function IOURequestEditReport({route}: IOURequestEditReportProps) {
4243 if ( ! transactionReport || selectedTransactionIDs . length === 0 ) {
4344 return ;
4445 }
45- changeTransactionsReport ( selectedTransactionIDs , CONST . REPORT . UNREPORTED_REPORT_ID ) ;
46+ Navigation . dismissModal ( ) ;
47+ InteractionManager . runAfterInteractions ( ( ) => {
48+ changeTransactionsReport ( selectedTransactionIDs , CONST . REPORT . UNREPORTED_REPORT_ID ) ;
49+ } ) ;
4650 if ( shouldTurnOffSelectionMode ) {
4751 turnOffMobileSelectionMode ( ) ;
4852 }
4953 clearSelectedTransactions ( true ) ;
50- Navigation . dismissModal ( ) ;
5154 } ;
5255
5356 return (
You can’t perform that action at this time.
0 commit comments