Skip to content

Commit

Permalink
Merge pull request #28461 from tienifr/fix/27591
Browse files Browse the repository at this point in the history
Fix: Private notes page shows not found in offline mode
  • Loading branch information
grgia authored Oct 3, 2023
2 parents ad8dca2 + 9c65f40 commit cccc00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/PrivateNotes/PrivateNotesListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function PrivateNotesListPage({report, personalDetailsList, network, session}) {
const {translate} = useLocalize();

useEffect(() => {
if (network.isOffline) {
if (network.isOffline && report.isLoadingPrivateNotes) {
return;
}
Report.getReportPrivateNote(report.reportID);
}, [report.reportID, network.isOffline]);
}, [report.reportID, network.isOffline, report.isLoadingPrivateNotes]);

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

0 comments on commit cccc00b

Please sign in to comment.