diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 4903ab2160a5..ef16dc067719 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -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({