mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-12 12:39:30 +01:00
Fix local API empty search results loading forever (#3770)
This commit is contained in:
parent
35868b408f
commit
0ba63d5405
@ -411,7 +411,8 @@ function handleSearchResponse(response) {
|
||||
|
||||
return {
|
||||
results,
|
||||
continuationData: response.has_continuation ? response : null
|
||||
// check the length of the results, as there can be continuations for things that we've filtered out, which we don't want
|
||||
continuationData: response.has_continuation && results.length > 0 ? response : null
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,10 +114,6 @@ export default defineComponent({
|
||||
try {
|
||||
const { results, continuationData } = await getLocalSearchResults(payload.query, payload.searchSettings, this.showFamilyFriendlyOnly)
|
||||
|
||||
if (results.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
this.apiUsed = 'local'
|
||||
|
||||
this.shownResults = results
|
||||
|
Loading…
Reference in New Issue
Block a user