fix: resolve white screen by removing stack-unfriendly spread operators and adding diagnostic logs

This commit is contained in:
Christian Vidal Wolf
2026-04-16 12:02:49 +02:00
parent 348821cd49
commit 630941c96a
5 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export const MasterTable: React.FC<MasterTableProps> = ({ products, includeCOGS,
const totalAcos = totals.grossSales > 0 ? totals.ppcSpend / totals.grossSales : 0;
const sortedProducts = useMemo(() => {
return [...products].sort((a, b) => {
return products.slice().sort((a, b) => {
const metricsA = calculateProductMetrics(a, includeCOGS);
const metricsB = calculateProductMetrics(b, includeCOGS);