From 288d9a5ec524c13227af0d1cdfaa8ff102fe248f Mon Sep 17 00:00:00 2001 From: Manuel Ruwe Date: Sat, 31 Dec 2022 16:23:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20build=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/widgets/torrents/useGetTorrentData.tsx | 1 - src/widgets/bitTorrent/BitTorrentTile.tsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/widgets/torrents/useGetTorrentData.tsx b/src/hooks/widgets/torrents/useGetTorrentData.tsx index 4703d60be..4b5c0ad30 100644 --- a/src/hooks/widgets/torrents/useGetTorrentData.tsx +++ b/src/hooks/widgets/torrents/useGetTorrentData.tsx @@ -13,7 +13,6 @@ export const useGetTorrentData = (params: TorrentsDataRequestParams) => queryKey: ['torrentsData', params.appId], queryFn: async () => fetchData(), refetchOnWindowFocus: true, - refetchIntervalInBackground: POLLING_INTERVAL * 3, refetchInterval(_: any, query: Query) { if (query.state.fetchFailureCount < 3) { return 5000; diff --git a/src/widgets/bitTorrent/BitTorrentTile.tsx b/src/widgets/bitTorrent/BitTorrentTile.tsx index 2bada13f7..e261a2ec2 100644 --- a/src/widgets/bitTorrent/BitTorrentTile.tsx +++ b/src/widgets/bitTorrent/BitTorrentTile.tsx @@ -1,3 +1,4 @@ +import { NormalizedTorrent } from '@ctrl/shared-torrent'; import { Center, Group, @@ -125,7 +126,7 @@ function BitTorrentTile({ widget }: BitTorrentTileProps) { - {data.map((item, index) => ( + {data.map((item: NormalizedTorrent, index: number) => ( ))}