From ed023cd62a4016311e8ea6cb9d06bc1810036f9a Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Tue, 21 Jan 2025 18:19:32 -0800 Subject: [PATCH] feature/IO-3103-Ant5-Notifications - Missing Deps on UseDep --- .../components/document-editor/document-editor.component.jsx | 2 +- .../jobs-totals.cash-discount-display.component.jsx | 2 +- .../production-board-kanban.component.jsx | 2 +- .../production-sublets-manage.component.jsx | 2 +- client/src/components/update-alert/update-alert.component.jsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/document-editor/document-editor.component.jsx b/client/src/components/document-editor/document-editor.component.jsx index d0c7b9422..4d2eddc52 100644 --- a/client/src/components/document-editor/document-editor.component.jsx +++ b/client/src/components/document-editor/document-editor.component.jsx @@ -51,7 +51,7 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) { notification ); }, - [bodyshop, currentUser, document] + [bodyshop, currentUser, document, notification] ); useEffect(() => { diff --git a/client/src/components/job-totals-table/jobs-totals.cash-discount-display.component.jsx b/client/src/components/job-totals-table/jobs-totals.cash-discount-display.component.jsx index 5adc17b20..53e973006 100644 --- a/client/src/components/job-totals-table/jobs-totals.cash-discount-display.component.jsx +++ b/client/src/components/job-totals-table/jobs-totals.cash-discount-display.component.jsx @@ -50,7 +50,7 @@ export function JobTotalsCashDiscount({ bodyshop, amountDinero }) { setLoading(false); } } - }, [amountDinero, bodyshop]); + }, [amountDinero, bodyshop, notification]); useEffect(() => { fetchData(); diff --git a/client/src/components/production-board-kanban/production-board-kanban.component.jsx b/client/src/components/production-board-kanban/production-board-kanban.component.jsx index 5ad644e6a..574ee1c5a 100644 --- a/client/src/components/production-board-kanban/production-board-kanban.component.jsx +++ b/client/src/components/production-board-kanban/production-board-kanban.component.jsx @@ -182,7 +182,7 @@ function ProductionBoardKanbanComponent({ data, bodyshop, refetch, insertAuditTr setIsMoving(false); } }, - [boardLanes, client, getCardByID, isMoving, t, insertAuditTrail] + [boardLanes, client, getCardByID, isMoving, t, insertAuditTrail, notification] ); const cardSettings = useMemo(() => { diff --git a/client/src/components/production-sublets-manage/production-sublets-manage.component.jsx b/client/src/components/production-sublets-manage/production-sublets-manage.component.jsx index 12ad54e84..4bfefb2de 100644 --- a/client/src/components/production-sublets-manage/production-sublets-manage.component.jsx +++ b/client/src/components/production-sublets-manage/production-sublets-manage.component.jsx @@ -49,7 +49,7 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) { } setLoading(false); }, - [updateJobLine, t] + [updateJobLine, t, notification] ); const popContent = useMemo( diff --git a/client/src/components/update-alert/update-alert.component.jsx b/client/src/components/update-alert/update-alert.component.jsx index 1691c30c0..22b290a5c 100644 --- a/client/src/components/update-alert/update-alert.component.jsx +++ b/client/src/components/update-alert/update-alert.component.jsx @@ -88,7 +88,7 @@ export function UpdateAlert({ updateAvailable }) { if (needRefresh && timerStarted && timeLeft <= 0) { ReloadNewVersion(); } - }, [timeLeft, t, needRefresh, ReloadNewVersion, timerStarted]); + }, [timeLeft, t, needRefresh, ReloadNewVersion, timerStarted, notification]); if (!needRefresh) return null;