Skip to content

Commit 79edea6

Browse files
committed
fix ref ts error
1 parent ba23687 commit 79edea6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/app/view/preview/csvview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const CSVView = ({ parentRef, filename, content }: CSVViewProps) => {
193193
</thead>
194194
<tbody style={{ height: `${state.tbodyHeight}px` }} ref={tbodyRef}>
195195
{table.getRowModel().rows.map((row, index) => (
196-
<tr key={row.id} ref={(el) => (rowRef.current[index] = el)} id={row.id} tabIndex={index}>
196+
<tr key={row.id} ref={(el) => { rowRef.current[index] = el; }} id={row.id} tabIndex={index}>
197197
{row.getVisibleCells().map((cell) => (
198198
<td key={cell.id} id={cell.id} tabIndex={index}>
199199
{flexRender(cell.column.columnDef.cell, cell.getContext())}

0 commit comments

Comments
 (0)