fix: hide torrents table header with empty results
This commit is contained in:
1 parent
b8c03669e4
commit
7c6d608239
1 file changed
+2
@@ -29,6 +29,7 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
|
||||
|
||||
return (
|
||||
<Table className='overflow-hidden rounded-xl'>
|
||||
{Boolean(torrents?.length) && (
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead className='hidden px-2 md:table-cell'>Title</TableHead>
|
||||
@@ -45,6 +46,7 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
|
||||
<TableHead className='cursor-pointer select-none px-2' onClick={() => showHostManagerModal()} />
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
)}
|
||||
|
||||
<TableBody>
|
||||
{torrents?.map((torrent) => {
|
||||
|
||||
Reference in new issue
Block a user