mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix search result type auto filter
This commit is contained in:
parent
6def7d34e6
commit
3576225156
@ -81,8 +81,8 @@ export class AdvancedSearch {
|
||||
this.languageOneOf = options.languageOneOf || undefined
|
||||
this.tagsOneOf = intoArray(options.tagsOneOf)
|
||||
this.tagsAllOf = intoArray(options.tagsAllOf)
|
||||
this.durationMin = parseInt(options.durationMin, 10)
|
||||
this.durationMax = parseInt(options.durationMax, 10)
|
||||
this.durationMin = options.durationMin ? parseInt(options.durationMin, 10) : undefined
|
||||
this.durationMax = options.durationMax ? parseInt(options.durationMax, 10) : undefined
|
||||
|
||||
this.host = options.host || undefined
|
||||
|
||||
@ -216,7 +216,7 @@ export class AdvancedSearch {
|
||||
this.endDate !== undefined ||
|
||||
this.originallyPublishedStartDate !== undefined ||
|
||||
this.originallyPublishedEndDate !== undefined ||
|
||||
this.nsfw !== undefined !== undefined ||
|
||||
this.nsfw !== undefined ||
|
||||
this.categoryOneOf !== undefined ||
|
||||
this.licenceOneOf !== undefined ||
|
||||
this.languageOneOf !== undefined ||
|
||||
|
Loading…
Reference in New Issue
Block a user