diff --git a/components/webset-table.tsx b/components/webset-table.tsx index dc3e9a4..79fce38 100644 --- a/components/webset-table.tsx +++ b/components/webset-table.tsx @@ -384,7 +384,10 @@ export function WebsetTable({ const url = (row[linkedinIdx] || '').trim(); if (!url) continue; urls.push(url); - (urlToIndexes[url] ||= []).push(i); + if (!urlToIndexes[url]) { + urlToIndexes[url] = []; + } + urlToIndexes[url].push(i); } if (!urls.length) { try { toast.error('No LinkedIn URLs found in missing rows'); } catch {} @@ -478,7 +481,7 @@ export function WebsetTable({
{ if (sortedColumn === header) setSortDirection((d) => (d === 'asc' ? 'desc' : 'asc'));