From 3a1cf3dc2f5f64254c5e938bd861e38431086abf Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Wed, 5 Apr 2023 08:37:09 +0000
Subject: [PATCH] chore(types): fix types errors

---
 src/app/annuaire/search-bar/search-bar.component.ts           | 1 -
 src/app/carto/carto.component.ts                              | 4 ++--
 .../structure-list-search/structure-list-search.component.ts  | 1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/app/annuaire/search-bar/search-bar.component.ts b/src/app/annuaire/search-bar/search-bar.component.ts
index c6824e987..a6f0f5bc7 100644
--- a/src/app/annuaire/search-bar/search-bar.component.ts
+++ b/src/app/annuaire/search-bar/search-bar.component.ts
@@ -18,7 +18,6 @@ export class SearchBarComponent implements OnInit, OnChanges {
   @Output() searchEvent = new EventEmitter<SearchQuery>();
   @Output() shouldLoad = new EventEmitter<boolean>();
 
-  public locate = false;
   public addStructureFormModal = false;
   public buttonTypeEnum = ButtonType;
   public searchForm: FormGroup;
diff --git a/src/app/carto/carto.component.ts b/src/app/carto/carto.component.ts
index f6e728144..dc992f620 100644
--- a/src/app/carto/carto.component.ts
+++ b/src/app/carto/carto.component.ts
@@ -52,7 +52,7 @@ export class CartoComponent implements OnInit {
         this.getAddress(this.userLongitude, this.userLatitude);
       }
       if (navigator.geolocation) {
-        this.getLocation(this.filters);
+        this.getLocation();
       }
     }
 
@@ -174,7 +174,7 @@ export class CartoComponent implements OnInit {
     return structure;
   }
 
-  public getLocation(filters: Filter[]): void {
+  public getLocation(): void {
     navigator.geolocation.getCurrentPosition((position) => {
       this.geolocation = true;
       if (!this.userLongitude && !this.userLatitude) {
diff --git a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts
index e5aa63ebc..092aeaf6e 100644
--- a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts
+++ b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts
@@ -19,7 +19,6 @@ export class StructureListSearchComponent implements OnInit {
   @Output() searchEvent = new EventEmitter();
   @Input() filters: Filter[] = [];
   public utils = new Utils();
-  public locate = false;
   // Show/hide form createStructure
   public buttonTypeEnum = ButtonType;
 
-- 
GitLab