Skip to content

Commit

Permalink
Merge pull request #38151 from VickyStash/bugfix/report-screen-crash
Browse files Browse the repository at this point in the history
Follow-up: fix crash on the report screen
  • Loading branch information
puneetlath authored Mar 12, 2024
2 parents 00f8886 + 57e0072 commit b9b11a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function ReportScreen({
}, [report, didSubscribeToReportLeavingEvents, reportID]);

const onListLayout = useCallback((event: LayoutChangeEvent) => {
setListHeight((prev) => event.nativeEvent.layout.height ?? prev);
setListHeight((prev) => event.nativeEvent?.layout?.height ?? prev);
if (!markReadyForHydration) {
return;
}
Expand Down

0 comments on commit b9b11a0

Please sign in to comment.