Fix filters count
This commit is contained in:
parent
c7edcd1839
commit
6a5563ed5b
|
@ -131,7 +131,7 @@
|
||||||
import Filters from '../components/Filters.vue'
|
import Filters from '../components/Filters.vue'
|
||||||
import { searchVideos, searchVideoChannels, searchVideoPlaylists } from '../shared/search'
|
import { searchVideos, searchVideoChannels, searchVideoPlaylists } from '../shared/search'
|
||||||
import { getConfig } from '../shared/config'
|
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 { SearchUrl } from '../models'
|
||||||
import { APIVideo } from '../../../server/types/video.model'
|
import { APIVideo } from '../../../server/types/video.model'
|
||||||
import { APIVideoChannel } from '../../../server/types/channel.model'
|
import { APIVideoChannel } from '../../../server/types/channel.model'
|
||||||
|
@ -295,8 +295,8 @@
|
||||||
if (query.languageOneOf) count++
|
if (query.languageOneOf) count++
|
||||||
if (query.isLive) count++
|
if (query.isLive) count++
|
||||||
if (query.resultType) count++
|
if (query.resultType) count++
|
||||||
if (Array.isArray(query.tagsAllOf) && query.tagsAllOf.length !== 0) count++
|
if (extractQueryToStringArray(query.tagsAllOf) && query.tagsAllOf.length !== 0) count++
|
||||||
if (Array.isArray(query.tagsOneOf) && query.tagsOneOf.length !== 0) count++
|
if (extractQueryToStringArray(query.tagsOneOf) && query.tagsOneOf.length !== 0) count++
|
||||||
|
|
||||||
return count
|
return count
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue