From 51e013afe1653566af134f4f4783326db717a036 Mon Sep 17 00:00:00 2001 From: tienifr Date: Wed, 4 Oct 2023 12:05:31 +0700 Subject: [PATCH] fix: getReportPrivateNotes called continously --- src/pages/PrivateNotes/PrivateNotesListPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/PrivateNotes/PrivateNotesListPage.js b/src/pages/PrivateNotes/PrivateNotesListPage.js index 4d83879654bf..bd49e74d5f69 100644 --- a/src/pages/PrivateNotes/PrivateNotesListPage.js +++ b/src/pages/PrivateNotes/PrivateNotesListPage.js @@ -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