aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-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 ||