Skip to content

Commit

Permalink
Don't call GetNewerActions when not comment linking
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Apr 26, 2024
1 parent 42d4ed7 commit 9b2d16d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/home/report/ReportActionsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,17 @@ function ReportActionsView({
newestReportAction: newestReportAction.pendingAction,
firstReportActionID: newestReportAction?.reportActionID,
isLoadingOlderReportsFirstNeeded,
reportActionID,
})}`,
);

if (isLoadingInitialReportActions || isLoadingOlderReportActions || network.isOffline || newestReportAction.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) {
if (
!reportActionID ||
isLoadingInitialReportActions ||
isLoadingOlderReportActions ||
network.isOffline ||
newestReportAction.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE
) {
return;
}

Expand Down

0 comments on commit 9b2d16d

Please sign in to comment.