feature/IO-3103-Ant5-Notifications - Missing Deps on UseDep
This commit is contained in:
@@ -51,7 +51,7 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) {
|
||||
notification
|
||||
);
|
||||
},
|
||||
[bodyshop, currentUser, document]
|
||||
[bodyshop, currentUser, document, notification]
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -50,7 +50,7 @@ export function JobTotalsCashDiscount({ bodyshop, amountDinero }) {
|
||||
setLoading(false);
|
||||
}
|
||||
}
|
||||
}, [amountDinero, bodyshop]);
|
||||
}, [amountDinero, bodyshop, notification]);
|
||||
|
||||
useEffect(() => {
|
||||
fetchData();
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) {
|
||||
}
|
||||
setLoading(false);
|
||||
},
|
||||
[updateJobLine, t]
|
||||
[updateJobLine, t, notification]
|
||||
);
|
||||
|
||||
const popContent = useMemo(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user