fix(ocp): possible fix for slc and crashing during mm check

This commit is contained in:
2025-06-05 01:25:33 -05:00
parent 4f8dfeeff6
commit 788fc5f745

View File

@@ -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
const mmStaged = await isMainMatStaged(filteredLot[0]);