feature/IO-3103-Ant5-Notifications - Missing Deps on UseDep

This commit is contained in:
Dave Richer
2025-01-21 18:19:32 -08:00
parent b1ca423a59
commit ed023cd62a
5 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) {
notification
);
},
[bodyshop, currentUser, document]
[bodyshop, currentUser, document, notification]
);
useEffect(() => {

View File

@@ -50,7 +50,7 @@ export function JobTotalsCashDiscount({ bodyshop, amountDinero }) {
setLoading(false);
}
}
}, [amountDinero, bodyshop]);
}, [amountDinero, bodyshop, notification]);
useEffect(() => {
fetchData();

View File

@@ -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(() => {

View File

@@ -49,7 +49,7 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) {
}
setLoading(false);
},
[updateJobLine, t]
[updateJobLine, t, notification]
);
const popContent = useMemo(

View File

@@ -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;