Skip to content

Commit

Permalink
Merge pull request #29893 from 5war00p/fix-regression-from-#29590
Browse files Browse the repository at this point in the history
revert: from empty string to null
  • Loading branch information
marcochavezf authored Oct 19, 2023
2 parents fd04739 + d26e300 commit 9ec6876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ const defaultProps = {
* @returns {String}
*/
function getReportID(route) {
return String(lodashGet(route, 'params.reportID', ''));
// // 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));
}

function ReportScreen({
Expand Down

0 comments on commit 9ec6876

Please sign in to comment.