Skip to content

Commit 6b4df86

Browse files
authored
Merge pull request #37596 from bernhardoj/fix/35906-blank-screen-when-open-chat
Fix blank screen is shown when opening a report screen after relaunching app
2 parents d81a18e + 049838b commit 6b4df86

File tree

3 files changed

+118
-167
lines changed

3 files changed

+118
-167
lines changed

src/libs/actions/Report.ts

-7
Original file line numberDiff line numberDiff line change
@@ -807,13 +807,6 @@ function openReport(
807807
parameters.shouldRetry = false;
808808
}
809809

810-
const report = ReportUtils.getReport(reportID);
811-
// If we open an exist report, but it is not present in Onyx yet, we should change the method to set for this report
812-
// and we need data to be available when we navigate to the chat page
813-
if (isEmptyObject(report)) {
814-
optimisticData[0].onyxMethod = Onyx.METHOD.SET;
815-
}
816-
817810
// If we are creating a new report, we need to add the optimistic report data and a report action
818811
const isCreatingNewReport = !isEmptyObject(newReportObject);
819812
if (isCreatingNewReport) {

0 commit comments

Comments
 (0)