diff --git a/src/pages/DashboardDirector/components/LatestPecEmailsTable/index.js b/src/pages/DashboardDirector/components/LatestPecEmailsTable/index.js index dbee4e1..bdeaf18 100644 --- a/src/pages/DashboardDirector/components/LatestPecEmailsTable/index.js +++ b/src/pages/DashboardDirector/components/LatestPecEmailsTable/index.js @@ -79,7 +79,6 @@ const LatestPecEmailsTable = () => { const getUserActionCallback = (resp) => { if (resp.status === 'SUCCESS') { - setItems(resp.data); if (toast.current && resp.message) { toast.current.show({ severity: 'success', @@ -87,8 +86,10 @@ const LatestPecEmailsTable = () => { detail: resp.message }); } + PecEmailService.getPecEmails(getCallback, errGetCallbacks); + } else { + setLocalAsyncRequest(false); } - setLocalAsyncRequest(false); } const errGetUserActionCallbacks = (resp) => {