Skip to content

Commit

Permalink
Merge pull request #47781 from fabioh8010/bugfix/44226
Browse files Browse the repository at this point in the history
Default transactionThreadReportID to -1 in ReportActionsView
  • Loading branch information
nkuoch authored Aug 27, 2024
2 parents 3347c10 + b30c80b commit 9bebed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,12 @@ export default Performance.withRenderTrace({id: '<ReportActionsView> rendering'}
key: ONYXKEYS.SESSION,
},
transactionThreadReportActions: {
key: ({transactionThreadReportID}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThreadReportID}`,
key: ({transactionThreadReportID}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThreadReportID ?? -1}`,
canEvict: false,
selector: (reportActions: OnyxEntry<OnyxTypes.ReportActions>) => ReportActionsUtils.getSortedReportActionsForDisplay(reportActions, true),
},
transactionThreadReport: {
key: ({transactionThreadReportID}) => `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadReportID}`,
key: ({transactionThreadReportID}) => `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadReportID ?? -1}`,
initialValue: {} as OnyxTypes.Report,
},
})(MemoizedReportActionsView),
Expand Down

0 comments on commit 9bebed5

Please sign in to comment.