From f31da23625ea4ef14de324c3e03d611c0ab459cb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Aug 2024 15:29:46 +0200 Subject: [PATCH] Fix search filters reset button --- .../app/+search/search-filters.component.html | 26 +++++++++---------- .../app/+search/search-filters.component.ts | 6 ++++- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html index cd5d2d408..1a6e75f0f 100644 --- a/client/src/app/+search/search-filters.component.html +++ b/client/src/app/+search/search-filters.component.html @@ -5,7 +5,7 @@
-
@@ -19,7 +19,7 @@
-
@@ -38,7 +38,7 @@
-
@@ -57,7 +57,7 @@
-
@@ -71,7 +71,7 @@
-
@@ -106,7 +106,7 @@
-
@@ -119,7 +119,7 @@
-
@@ -132,7 +132,7 @@
-
@@ -145,7 +145,7 @@
-
@@ -160,7 +160,7 @@
- @@ -168,7 +168,7 @@
- @@ -185,7 +185,7 @@
-
@@ -226,7 +226,7 @@
- diff --git a/client/src/app/+search/search-filters.component.ts b/client/src/app/+search/search-filters.component.ts index c77714266..0a064fb26 100644 --- a/client/src/app/+search/search-filters.component.ts +++ b/client/src/app/+search/search-filters.component.ts @@ -209,7 +209,11 @@ export class SearchFiltersComponent implements OnInit { } private updateModelFromDurationRange () { - if (!this.durationRange) return + if (!this.durationRange) { + this.advancedSearch.durationMin = undefined + this.advancedSearch.durationMax = undefined + return + } const fourMinutes = 60 * 4 const tenMinutes = 60 * 10