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
|
notification
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
[bodyshop, currentUser, document]
|
[bodyshop, currentUser, document, notification]
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export function JobTotalsCashDiscount({ bodyshop, amountDinero }) {
|
|||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [amountDinero, bodyshop]);
|
}, [amountDinero, bodyshop, notification]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchData();
|
fetchData();
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ function ProductionBoardKanbanComponent({ data, bodyshop, refetch, insertAuditTr
|
|||||||
setIsMoving(false);
|
setIsMoving(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[boardLanes, client, getCardByID, isMoving, t, insertAuditTrail]
|
[boardLanes, client, getCardByID, isMoving, t, insertAuditTrail, notification]
|
||||||
);
|
);
|
||||||
|
|
||||||
const cardSettings = useMemo(() => {
|
const cardSettings = useMemo(() => {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) {
|
|||||||
}
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
},
|
},
|
||||||
[updateJobLine, t]
|
[updateJobLine, t, notification]
|
||||||
);
|
);
|
||||||
|
|
||||||
const popContent = useMemo(
|
const popContent = useMemo(
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function UpdateAlert({ updateAvailable }) {
|
|||||||
if (needRefresh && timerStarted && timeLeft <= 0) {
|
if (needRefresh && timerStarted && timeLeft <= 0) {
|
||||||
ReloadNewVersion();
|
ReloadNewVersion();
|
||||||
}
|
}
|
||||||
}, [timeLeft, t, needRefresh, ReloadNewVersion, timerStarted]);
|
}, [timeLeft, t, needRefresh, ReloadNewVersion, timerStarted, notification]);
|
||||||
|
|
||||||
if (!needRefresh) return null;
|
if (!needRefresh) return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user