mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
🚨 Fix build errors
This commit is contained in:
@@ -13,7 +13,6 @@ export const useGetTorrentData = (params: TorrentsDataRequestParams) =>
|
|||||||
queryKey: ['torrentsData', params.appId],
|
queryKey: ['torrentsData', params.appId],
|
||||||
queryFn: async () => fetchData(),
|
queryFn: async () => fetchData(),
|
||||||
refetchOnWindowFocus: true,
|
refetchOnWindowFocus: true,
|
||||||
refetchIntervalInBackground: POLLING_INTERVAL * 3,
|
|
||||||
refetchInterval(_: any, query: Query) {
|
refetchInterval(_: any, query: Query) {
|
||||||
if (query.state.fetchFailureCount < 3) {
|
if (query.state.fetchFailureCount < 3) {
|
||||||
return 5000;
|
return 5000;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { NormalizedTorrent } from '@ctrl/shared-torrent';
|
||||||
import {
|
import {
|
||||||
Center,
|
Center,
|
||||||
Group,
|
Group,
|
||||||
@@ -125,7 +126,7 @@ function BitTorrentTile({ widget }: BitTorrentTileProps) {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{data.map((item, index) => (
|
{data.map((item: NormalizedTorrent, index: number) => (
|
||||||
<BitTorrrentQueueItem key={index} torrent={item} />
|
<BitTorrrentQueueItem key={index} torrent={item} />
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user