Skip to content

Commit

Permalink
Fix regression #41504
Browse files Browse the repository at this point in the history
  • Loading branch information
dragnoir committed May 2, 2024
1 parent 7eabae9 commit 19ea270
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 19ea270

Please sign in to comment.