mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Only search when query has length
This commit is contained in:
@@ -61,8 +61,9 @@
|
||||
}
|
||||
|
||||
function fetchTorrents() {
|
||||
loading.value = true;
|
||||
if (!props.query?.length) return;
|
||||
|
||||
loading.value = true;
|
||||
searchTorrents(props.query)
|
||||
.then(torrentResponse => setTorrents(torrentResponse?.results))
|
||||
.then(() => updateResultCountDisplay())
|
||||
|
||||
Reference in New Issue
Block a user