Skip to content

Commit f326b05

Browse files
waleedlatif1claude
andcommitted
fix(tables): skip gap positions in handleCopy for checked rows
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3e4241c commit f326b05

File tree

1 file changed

+2
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

1 file changed

+2
-1
lines changed

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,9 @@ export function Table({
931931
const lines: string[] = []
932932
for (const pos of sorted) {
933933
const row = pMap.get(pos)
934+
if (!row) continue
934935
const cells: string[] = cols.map((col) => {
935-
const value: unknown = row ? row.data[col.name] : null
936+
const value: unknown = row.data[col.name]
936937
if (value === null || value === undefined) return ''
937938
return typeof value === 'object' ? JSON.stringify(value) : String(value)
938939
})

0 commit comments

Comments
 (0)