aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/search.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/search/search.component.ts')
-rw-r--r--client/src/app/search/search.component.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts
index 8860b9268..8d615fd05 100644
--- a/client/src/app/search/search.component.ts
+++ b/client/src/app/search/search.component.ts
@@ -44,7 +44,8 @@ export class SearchComponent implements OnInit, OnDestroy {
44 queryParams => { 44 queryParams => {
45 const querySearch = queryParams['search'] 45 const querySearch = queryParams['search']
46 46
47 if (!querySearch) return this.redirectService.redirectToHomepage() 47 // New empty search
48 if (this.currentSearch && !querySearch) return this.redirectService.redirectToHomepage()
48 49
49 // Search updated, reset filters 50 // Search updated, reset filters
50 if (this.currentSearch !== querySearch) { 51 if (this.currentSearch !== querySearch) {