Skip to content

Commit

Permalink
docs: update report id to be null w.r.to onyx
Browse files Browse the repository at this point in the history
Co-authored-by: Fedi Rajhi <[email protected]>
  • Loading branch information
5war00p and fedirjh authored Oct 18, 2023
1 parent 0ee0cef commit d26e300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const defaultProps = {
* @returns {String}
*/
function getReportID(route) {
// reportID shouldn't be empty string as null says Onyx to return empty object
// // The reportID is used inside a collection key and should not be empty, as an empty reportID will result in the entire collection being returned.
return String(lodashGet(route, 'params.reportID', null));
}

Expand Down

0 comments on commit d26e300

Please sign in to comment.