IO-233 Additional CDK Posting

This commit is contained in:
Patrick Fic
2021-09-08 15:11:24 -07:00
parent c03f54b3eb
commit f3e078b481
6 changed files with 345 additions and 35 deletions

View File

@@ -27,9 +27,10 @@ export function DmsAllocationsSummary({ socket, bodyshop, jobId }) {
useEffect(() => {
if (socket.connected) {
socket.emit("cdk-calculate-allocations", jobId, (ack) =>
setAllocationsSummary(ack)
);
socket.emit("cdk-calculate-allocations", jobId, (ack) => {
setAllocationsSummary(ack);
socket.allocationsSummary = ack;
});
}
}, [socket, socket.connected, jobId]);