fix(ocp): possible fix for slc and crashing during mm check
This commit is contained in:
@@ -152,6 +152,19 @@ export const labelingProcess = async ({
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if we actaully have a lot passed over so we do not error out again.
|
||||||
|
if (filteredLot.length === 0) {
|
||||||
|
createLog(
|
||||||
|
"error",
|
||||||
|
"labeling",
|
||||||
|
"ocp",
|
||||||
|
`Error getting lot info from ${
|
||||||
|
printer ? printer.name : "Missing printer info"
|
||||||
|
}`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// check mm is good
|
// check mm is good
|
||||||
const mmStaged = await isMainMatStaged(filteredLot[0]);
|
const mmStaged = await isMainMatStaged(filteredLot[0]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user