mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 14:35:22 +02:00
fix: resolve white screen by removing stack-unfriendly spread operators and adding diagnostic logs
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user