Skip to content

Commit

Permalink
update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
narefyev91 committed May 21, 2024
1 parent b325bb0 commit 61a5653
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 @@ -132,11 +132,11 @@ function ReportActionsView({

useEffect(() => {
// When we linked to message - we do not need to wait for initial actions - they already exists
if (!(isNavigatingToLinkedMessage && isOffline)) {
if (!reportActionID || !isOffline) {
return;
}
Report.updateLoadingInitialReportAction(report.reportID);
}, [isNavigatingToLinkedMessage, isOffline, report.reportID]);
}, [isOffline, report.reportID, reportActionID]);

useLayoutEffect(() => {
setCurrentReportActionID('');
Expand Down

0 comments on commit 61a5653

Please sign in to comment.