fix(lots): if no lots are assigned or released correct so nothing is posted
This commit is contained in:
@@ -19,6 +19,15 @@ export const assignedPrinters = async () => {
|
||||
};
|
||||
}
|
||||
|
||||
if (l.data.length === 0 && l.success) {
|
||||
createLog("info", "lst", "ocp", `There are no lots assigned currently`);
|
||||
return {
|
||||
success: true,
|
||||
message: "There are no lots assigned currenly.",
|
||||
data: [],
|
||||
};
|
||||
}
|
||||
|
||||
if (l.data.length === 0 && !l.data.sucess) {
|
||||
createLog(
|
||||
"error",
|
||||
|
||||
Reference in New Issue
Block a user