Skip to content

Commit

Permalink
fixes infinite loading of 0 report id
Browse files Browse the repository at this point in the history
  • Loading branch information
ishpaul777 committed Mar 25, 2024
1 parent 008de2b commit 4491fef
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 @@ -99,7 +99,7 @@ type ReportScreenProps = OnyxHOCProps & ViewportOffsetTopProps & CurrentReportID
function getReportID(route: ReportScreenNavigationProps['route']): string {
// The report ID is used in an onyx key. If it's an empty string, onyx will return
// a collection instead of an individual report.
return String(route.params?.reportID || 0);
return String(route.params?.reportID || '');
}

/**
Expand Down

0 comments on commit 4491fef

Please sign in to comment.