fix(lots): missed .data on the lotInfo return

This commit is contained in:
2025-04-24 21:36:22 -05:00
parent c5ebe4e2fa
commit eb0a5d6311
2 changed files with 2 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ export const getLots = async () => {
return { return {
success: true, success: true,
message: "Current active lots that are technically released.", message: "Current active lots that are technically released.",
data: lotInfo, data: lotInfo.data,
}; };
} else { } else {
return { return {

View File

@@ -45,12 +45,10 @@ export const assignedPrinters = async () => {
const printers: any = print.data ?? []; const printers: any = print.data ?? [];
const lots: any = l?.data.length === 0 ? [] : l?.data; const lots: any = l?.data.length === 0 ? [] : l?.data;
//console.log(lots);
//return; //return;
for (let i = 0; i < printers.length; i++) { for (let i = 0; i < printers.length; i++) {
// is the printer assinged in alplalabel online? // is the printer assinged in alplalabel online?
const assigned = lots?.filter( const assigned = lots.filter(
(p: any) => p.printerID === parseInt(printers[i].humanReadableId) (p: any) => p.printerID === parseInt(printers[i].humanReadableId)
); );