Fix filters count

This commit is contained in:
Chocobozzz 2024-01-15 11:00:32 +01:00
parent c7edcd1839
commit 6a5563ed5b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@
import Filters from '../components/Filters.vue'
import { searchVideos, searchVideoChannels, searchVideoPlaylists } from '../shared/search'
import { getConfig } from '../shared/config'
import { pageToAPIParams, durationRangeToAPIParams, publishedDateRangeToAPIParams, extractTagsFromQuery, extractQueryToIntArray, extractQueryToStringArray, extractQueryToInt, extractQueryToBoolean } from '../shared/utils'
import { pageToAPIParams, durationRangeToAPIParams, publishedDateRangeToAPIParams, extractTagsFromQuery, extractQueryToIntArray, extractQueryToStringArray, extractQueryToInt, extractQueryToBoolean, arrayify } from '../shared/utils'
import { SearchUrl } from '../models'
import { APIVideo } from '../../../server/types/video.model'
import { APIVideoChannel } from '../../../server/types/channel.model'
@ -295,8 +295,8 @@
if (query.languageOneOf) count++
if (query.isLive) count++
if (query.resultType) count++
if (Array.isArray(query.tagsAllOf) && query.tagsAllOf.length !== 0) count++
if (Array.isArray(query.tagsOneOf) && query.tagsOneOf.length !== 0) count++
if (extractQueryToStringArray(query.tagsAllOf) && query.tagsAllOf.length !== 0) count++
if (extractQueryToStringArray(query.tagsOneOf) && query.tagsOneOf.length !== 0) count++
return count
},