fix: remove duplicate buybox lost badge from SKU column in GRID

The BuyBoxWarningBadge was appearing twice - once next to the SKU and once next to Amazon stock. Now it only appears next to Amazon stock as requested.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Christian Vidal Wolf
2026-03-09 09:52:33 +01:00
co-authored by Qwen-Coder
parent 1c23053e57
commit c58b246c41
-3
View File
@@ -1408,9 +1408,6 @@ const DataGrid: React.FC<DataGridProps> = ({ data, filters, hasCustomerFilter, a
return null; return null;
})()} })()}
<span className="whitespace-nowrap">{(row[dim as keyof PivotRow] as string) || '-'}</span> <span className="whitespace-nowrap">{(row[dim as keyof PivotRow] as string) || '-'}</span>
<div className="shrink-0">
<BuyBoxWarningBadge asin={row.asin} buyBoxLostMap={buyBoxLostMap} />
</div>
</div> </div>
: (row[dim as keyof PivotRow] as string) || '-' : (row[dim as keyof PivotRow] as string) || '-'
} }