Merge branch 'master' into use-auto-dark-palette-and-About

This commit is contained in:
nikk
2021-06-17 20:39:16 +03:00
committed by GitHub
12 changed files with 136 additions and 56 deletions

View File

@@ -46,10 +46,7 @@ export default function AddDialog({
const [skipDebounce, setSkipDebounce] = useState(false)
const [isCustomTitleEnabled, setIsCustomTitleEnabled] = useState(false)
const { data: torrents } = useQuery('torrents', getTorrents, {
retry: 1,
refetchInterval: 1000,
})
const { data: torrents } = useQuery('torrents', getTorrents, { retry: 1, refetchInterval: 1000 })
useEffect(() => {
const allHashes = torrents.map(({ hash }) => hash)