Skip to content

Commit

Permalink
Merge pull request #41526 from dragnoir/41504-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored May 2, 2024
2 parents 5bb3329 + 19ea270 commit d07829b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ function ReportActionsList({
);

const shouldUseThreadDividerLine = useMemo(() => {
const topReport = sortedVisibleReportActions[sortedVisibleReportActions.length - 1];
const topReport = sortedVisibleReportActions.length > 0 ? sortedVisibleReportActions[sortedVisibleReportActions.length - 1] : null;

if (topReport.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED) {
if (topReport && topReport.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED) {
return false;
}

Expand Down

0 comments on commit d07829b

Please sign in to comment.