Skip to content

Commit

Permalink
Merge pull request #37596 from bernhardoj/fix/35906-blank-screen-when…
Browse files Browse the repository at this point in the history
…-open-chat

Fix blank screen is shown when opening a report screen after relaunching app
  • Loading branch information
yuwenmemon authored May 28, 2024
2 parents d81a18e + 049838b commit 6b4df86
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 167 deletions.
7 changes: 0 additions & 7 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,13 +807,6 @@ function openReport(
parameters.shouldRetry = false;
}

const report = ReportUtils.getReport(reportID);
// If we open an exist report, but it is not present in Onyx yet, we should change the method to set for this report
// and we need data to be available when we navigate to the chat page
if (isEmptyObject(report)) {
optimisticData[0].onyxMethod = Onyx.METHOD.SET;
}

// If we are creating a new report, we need to add the optimistic report data and a report action
const isCreatingNewReport = !isEmptyObject(newReportObject);
if (isCreatingNewReport) {
Expand Down
Loading

0 comments on commit 6b4df86

Please sign in to comment.