diff options
Diffstat (limited to 'client/src/app/+search')
-rw-r--r-- | client/src/app/+search/search-filters.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+search/search-filters.component.ts b/client/src/app/+search/search-filters.component.ts index f9de04706..a6fc51383 100644 --- a/client/src/app/+search/search-filters.component.ts +++ b/client/src/app/+search/search-filters.component.ts | |||
@@ -118,11 +118,11 @@ export class SearchFiltersComponent implements OnInit { | |||
118 | this.onDurationOrPublishedUpdated() | 118 | this.onDurationOrPublishedUpdated() |
119 | } | 119 | } |
120 | 120 | ||
121 | resetField (fieldName: string, value?: any) { | 121 | resetField (fieldName: keyof AdvancedSearch, value?: any) { |
122 | this.advancedSearch[fieldName] = value | 122 | (this.advancedSearch as any)[fieldName] = value |
123 | } | 123 | } |
124 | 124 | ||
125 | resetLocalField (fieldName: string, value?: any) { | 125 | resetLocalField (fieldName: keyof SearchFiltersComponent, value?: any) { |
126 | this[fieldName] = value | 126 | this[fieldName] = value |
127 | this.onDurationOrPublishedUpdated() | 127 | this.onDurationOrPublishedUpdated() |
128 | } | 128 | } |