Fix Buy Box badge visibility in Grid tab by preserving metadata in pivot; add row z-index

This commit is contained in:
Christian Vidal Wolf
2026-01-29 15:43:18 +01:00
parent fcc8096b01
commit b54f6f8030
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -1308,12 +1308,12 @@ export const pivotSalesData = (data: any[], dimensions: string[] = ['title', 'cu
if (!map.has(key)) {
map.set(key, {
id: key,
customer: dimensions.includes('customer') ? (record.customer || record.marketplace || '') : '',
line: dimensions.includes('line') ? record.line : '',
title: dimensions.includes('title') ? record.title : '',
articleName: dimensions.includes('articleName') ? record.articleName : '',
sku: dimensions.includes('sku') ? record.sku : '',
asin: dimensions.includes('asin') ? record.asin : '',
customer: record.customer || record.marketplace || '',
line: record.line || '',
title: record.title || '',
articleName: record.articleName || '',
sku: record.sku || '',
asin: record.asin || '',
// Initialize 12 months with empty year maps
months: Array(12).fill(null).map((_, i) => ({
monthIndex: i,