🚨 Fix build errors

This commit is contained in:
Manuel Ruwe
2022-12-31 16:23:13 +01:00
parent 4e097caf98
commit 288d9a5ec5
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -1,3 +1,4 @@
import { NormalizedTorrent } from '@ctrl/shared-torrent';
import {
Center,
Group,
@@ -125,7 +126,7 @@ function BitTorrentTile({ widget }: BitTorrentTileProps) {
</tr>
</thead>
<tbody>
{data.map((item, index) => (
{data.map((item: NormalizedTorrent, index: number) => (
<BitTorrrentQueueItem key={index} torrent={item} />
))}
</tbody>