diff --git a/src/components/ReportActionItem/MoneyRequestView.js b/src/components/ReportActionItem/MoneyRequestView.js index 7c7998c24c95..c624562efa69 100644 --- a/src/components/ReportActionItem/MoneyRequestView.js +++ b/src/components/ReportActionItem/MoneyRequestView.js @@ -427,7 +427,7 @@ export default compose( withOnyx({ transaction: { key: ({report, parentReportActions}) => { - const parentReportAction = parentReportActions[report.parentReportActionID]; + const parentReportAction = lodashGet(parentReportActions, [report.parentReportActionID]); const transactionID = lodashGet(parentReportAction, ['originalMessage', 'IOUTransactionID'], 0); return `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`; }, diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index b35d9240f3f7..1290f2dc082a 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -613,7 +613,7 @@ export default compose( if (!parentReportActionID) { return {}; } - return parentReportActions[parentReportActionID]; + return lodashGet(parentReportActions, parentReportActionID); }, canEvict: false, },