From 7c6d60823974f791eda7b6df2f7de7f92e5f1d73 Mon Sep 17 00:00:00 2001 From: ner Date: Tue, 15 Oct 2024 23:07:03 +0300 Subject: [PATCH] fix: hide torrents table header with empty results --- .../components/TorrentsTable/index.tsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/components/Show/components/Torrents/components/TorrentsTable/index.tsx b/components/Show/components/Torrents/components/TorrentsTable/index.tsx index c1f74ef..b1c798f 100644 --- a/components/Show/components/Torrents/components/TorrentsTable/index.tsx +++ b/components/Show/components/Torrents/components/TorrentsTable/index.tsx @@ -29,22 +29,24 @@ const TorrentsTable: FC = ({ title, torrents, backdrop, sort, sortable, p return ( - - - Title - Resolution - - - showHostManagerModal()} /> - - + {Boolean(torrents?.length) && ( + + + Title + Resolution + + + showHostManagerModal()} /> + + + )} {torrents?.map((torrent) => {