fix(lots): missed .data on the lotInfo return
This commit is contained in:
@@ -27,7 +27,7 @@ export const getLots = async () => {
|
||||
return {
|
||||
success: true,
|
||||
message: "Current active lots that are technically released.",
|
||||
data: lotInfo,
|
||||
data: lotInfo.data,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
@@ -45,12 +45,10 @@ export const assignedPrinters = async () => {
|
||||
const printers: any = print.data ?? [];
|
||||
const lots: any = l?.data.length === 0 ? [] : l?.data;
|
||||
|
||||
//console.log(lots);
|
||||
|
||||
//return;
|
||||
for (let i = 0; i < printers.length; i++) {
|
||||
// is the printer assinged in alplalabel online?
|
||||
const assigned = lots?.filter(
|
||||
const assigned = lots.filter(
|
||||
(p: any) => p.printerID === parseInt(printers[i].humanReadableId)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user