Skip to content

Commit

Permalink
Merge pull request #28787 from tienifr/fix/regression-27591
Browse files Browse the repository at this point in the history
Fix: `GetReportPrivateNote` gets called continuously
  • Loading branch information
mountiny authored Oct 4, 2023
2 parents ef30730 + 51e013a commit 4641d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/PrivateNotes/PrivateNotesListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function PrivateNotesListPage({report, personalDetailsList, network, session}) {
return;
}
Report.getReportPrivateNote(report.reportID);
}, [report.reportID, network.isOffline, report.isLoadingPrivateNotes]);
// eslint-disable-next-line react-hooks/exhaustive-deps -- do not add isLoadingPrivateNotes to dependencies
}, [report.reportID, network.isOffline]);

/**
* Gets the menu item for each workspace
Expand Down

0 comments on commit 4641d1b

Please sign in to comment.