diff --git a/apps/web-app/src/components/ui/DataTable/DataTable.tsx b/apps/web-app/src/components/ui/DataTable/DataTable.tsx index 6e91197..fa03ec7 100644 --- a/apps/web-app/src/components/ui/DataTable/DataTable.tsx +++ b/apps/web-app/src/components/ui/DataTable/DataTable.tsx @@ -10,7 +10,7 @@ import { SortingState, useReactTable, } from '@tanstack/react-table'; -import { Fragment, useState } from 'react'; +import { useState } from 'react'; import { TableVirtuoso } from 'react-virtuoso'; interface DataTableProps { @@ -89,7 +89,7 @@ export function DataTable({ TableRow: props => { const index = props['data-index'] as number; const item = flatRows[index]; - + if (!item) return null; if (item.type === 'expanded') { @@ -163,7 +163,9 @@ export function DataTable({ className={cn( 'absolute right-0 top-0 h-full w-1 cursor-col-resize user-select-none touch-none', 'hover:bg-primary-500 hover:opacity-100', - header.column.getIsResizing() ? 'bg-primary-500 opacity-100' : 'bg-border opacity-0' + header.column.getIsResizing() + ? 'bg-primary-500 opacity-100' + : 'bg-border opacity-0' )} /> )} @@ -176,4 +178,4 @@ export function DataTable({ } /> ); -} \ No newline at end of file +}