Skip to content

Commit

Permalink
put fetch report back outside interaction task
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed May 11, 2024
1 parent e1f52cf commit 5c0d651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,11 @@ function ReportScreen({
Timing.end(CONST.TIMING.CHAT_RENDER);
Performance.markEnd(CONST.TIMING.CHAT_RENDER);

// Call OpenReport only if we are not linking to a message or the report is not available yet
if (!reportActionIDFromRoute || !report.reportID) {
fetchReportIfNeeded();
}
const interactionTask = InteractionManager.runAfterInteractions(() => {
// Call OpenReport only if we are not linking to a message or the report is not available yet
if (!reportActionIDFromRoute || !report.reportID) {
fetchReportIfNeeded();
}
ComposerActions.setShouldShowComposeInput(true);
});
return () => {
Expand Down

0 comments on commit 5c0d651

Please sign in to comment.