This commit is contained in:
seb
2026-10-17 03:57:36 +02:00
parent e63abfe2c0
commit 6df833b362
4 changed files with 40 additions and 26 deletions

View File

@@ -114,8 +114,21 @@ class ManifestLines extends PureComponent {
}
}
return Array.isArray(lines) &&
lines.map((line, index) => {
if (!lines || lines.length === 0) {
return (
<TableRow>
<TableCell
colSpan={columns.length + 1}
align="center"
sx={{ py: 3, color: 'text.secondary', fontSize: '0.82rem' }}
>
Keine Positionen vorhanden
</TableCell>
</TableRow>
);
}
return lines.map((line, index) => {
const lineKey = line.key ?? index;
const rawSku = line.sku != null ? String(line.sku).trim() : '';
const isOnShipment = kind === 'order' && Boolean(rawSku && shippedSkus.has(rawSku.toLowerCase()));