aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-17 14:41:52 +0100
committerChocobozzz <me@florianbigard.com>2021-12-17 14:41:52 +0100
commit35762251565d6c9660d8402e8fcf655ff55cd315 (patch)
treef6be0e92a67a88b3a585a69f22340db98bed0006
parent6def7d34e6be805751b3f505b4e1436cc92fba35 (diff)
downloadPeerTube-35762251565d6c9660d8402e8fcf655ff55cd315.tar.gz
PeerTube-35762251565d6c9660d8402e8fcf655ff55cd315.tar.zst
PeerTube-35762251565d6c9660d8402e8fcf655ff55cd315.zip
Fix search result type auto filter
-rw-r--r--client/src/app/shared/shared-search/advanced-search.model.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-search/advanced-search.model.ts b/client/src/app/shared/shared-search/advanced-search.model.ts
index 724c4d834..e40fd2e66 100644
--- a/client/src/app/shared/shared-search/advanced-search.model.ts
+++ b/client/src/app/shared/shared-search/advanced-search.model.ts
@@ -81,8 +81,8 @@ export class AdvancedSearch {
81 this.languageOneOf = options.languageOneOf || undefined 81 this.languageOneOf = options.languageOneOf || undefined
82 this.tagsOneOf = intoArray(options.tagsOneOf) 82 this.tagsOneOf = intoArray(options.tagsOneOf)
83 this.tagsAllOf = intoArray(options.tagsAllOf) 83 this.tagsAllOf = intoArray(options.tagsAllOf)
84 this.durationMin = parseInt(options.durationMin, 10) 84 this.durationMin = options.durationMin ? parseInt(options.durationMin, 10) : undefined
85 this.durationMax = parseInt(options.durationMax, 10) 85 this.durationMax = options.durationMax ? parseInt(options.durationMax, 10) : undefined
86 86
87 this.host = options.host || undefined 87 this.host = options.host || undefined
88 88
@@ -216,7 +216,7 @@ export class AdvancedSearch {
216 this.endDate !== undefined || 216 this.endDate !== undefined ||
217 this.originallyPublishedStartDate !== undefined || 217 this.originallyPublishedStartDate !== undefined ||
218 this.originallyPublishedEndDate !== undefined || 218 this.originallyPublishedEndDate !== undefined ||
219 this.nsfw !== undefined !== undefined || 219 this.nsfw !== undefined ||
220 this.categoryOneOf !== undefined || 220 this.categoryOneOf !== undefined ||
221 this.licenceOneOf !== undefined || 221 this.licenceOneOf !== undefined ||
222 this.languageOneOf !== undefined || 222 this.languageOneOf !== undefined ||