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
+2 -2
View File
@@ -561,7 +561,7 @@ const WeeklyGrid: React.FC<WeeklyGridProps & { top50Mode: 'eu' | 'uk' }> = ({
// 1. Filter by search term, Top 50, and growth (using debounced value)
const filteredRows = useMemo(() => {
let result = rows;
let result = rows.slice();
// Top 50 Filter
if (showOnlyTop50 && top50Ranking) {
@@ -711,7 +711,7 @@ const WeeklyGrid: React.FC<WeeklyGridProps & { top50Mode: 'eu' | 'uk' }> = ({
const sortedRows = useMemo(() => {
if (!sortConfig || filteredRows.length === 0) return filteredRows;
const result = [...filteredRows];
const result = filteredRows.slice();
const { key: weekKey, direction, metric } = sortConfig;
if (metric === 'rank') {