From 0eadaa924d26c7cd097716d907b01171fec187e9 Mon Sep 17 00:00:00 2001
From: gcarron <gcarron@grandlyon.com>
Date: Fri, 16 Sep 2022 11:16:02 +0200
Subject: [PATCH] fix(annuaire): Remove filter to empty request

---
 src/app/annuaire/search-bar/search-bar.component.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/annuaire/search-bar/search-bar.component.ts b/src/app/annuaire/search-bar/search-bar.component.ts
index 918461558..e6d8ace01 100644
--- a/src/app/annuaire/search-bar/search-bar.component.ts
+++ b/src/app/annuaire/search-bar/search-bar.component.ts
@@ -172,8 +172,8 @@ export class SearchBarComponent implements OnInit, OnChanges {
     this.countCheckedFilters();
     this.searchEvent.emit({
       queryParam: inputTerm,
-      jobFilters: this.jobFilterChecked,
-      employerFilter: this.employerFilterChecked,
+      jobFilters: this.checkedFilterList.length ? this.jobFilterChecked : [],
+      employerFilter: this.checkedFilterList.length ? this.employerFilterChecked : [],
     });
   }
 }
-- 
GitLab