diff --git a/src/pages/home/report/ReportActionItemParentAction.js b/src/pages/home/report/ReportActionItemParentAction.js index c11200ccc4db..d1a294881eb9 100644 --- a/src/pages/home/report/ReportActionItemParentAction.js +++ b/src/pages/home/report/ReportActionItemParentAction.js @@ -24,6 +24,9 @@ const propTypes = { /** The id of the report */ reportID: PropTypes.string.isRequired, + /** Position index of the report parent action in the overall report FlatList view */ + index: PropTypes.number.isRequired, + /** The id of the parent report */ // eslint-disable-next-line react/no-unused-prop-types parentReportID: PropTypes.string.isRequired, @@ -72,7 +75,7 @@ function ReportActionItemParentAction(props) { displayAsGroup={false} isMostRecentIOUReportAction={false} shouldDisplayNewMarker={props.shouldDisplayNewMarker} - index={0} + index={props.index} /> )} diff --git a/src/pages/home/report/ReportActionsListItemRenderer.js b/src/pages/home/report/ReportActionsListItemRenderer.js index ba47e804de06..a9ae2b4c73b9 100644 --- a/src/pages/home/report/ReportActionsListItemRenderer.js +++ b/src/pages/home/report/ReportActionsListItemRenderer.js @@ -61,6 +61,7 @@ function ReportActionsListItemRenderer({ reportID={report.reportID} parentReportID={`${report.parentReportID}`} shouldDisplayNewMarker={shouldDisplayNewMarker} + index={index} /> ) : (