diff --git a/src/ROUTES.js b/src/ROUTES.js index 215a9a6384c3..92d11f440584 100644 --- a/src/ROUTES.js +++ b/src/ROUTES.js @@ -184,7 +184,7 @@ export default { const pathSegments = parsingRoute.split('/'); return { reportID: lodashGet(pathSegments, 1), - isSubReportPageRoute: Boolean(lodashGet(pathSegments, 2)), + isSubReportPageRoute: pathSegments.length > 2, }; }, };