Skip to content

Commit

Permalink
Merge pull request Expensify#26315 from StevenKKC/fixParentReportName
Browse files Browse the repository at this point in the history
fix parent report name in sub task page
  • Loading branch information
aldo-expensify authored Aug 31, 2023
2 parents 3d4d671 + 03bd52e commit 54e6904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ function getReportName(report, policy = undefined) {
* @returns {Object}
*/
function getRootReportAndWorkspaceName(report) {
if (isChildReport(report) && !isMoneyRequestReport(report)) {
if (isChildReport(report) && !isMoneyRequestReport(report) && !isTaskReport(report)) {
const parentReport = lodashGet(allReports, [`${ONYXKEYS.COLLECTION.REPORT}${report.parentReportID}`]);
return getRootReportAndWorkspaceName(parentReport);
}
Expand Down

0 comments on commit 54e6904

Please sign in to comment.