u
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user