From 180886584651e3b2e259c9212b607ddf02f37ac1 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Wed, 27 Jan 2021 09:13:44 +0100 Subject: [PATCH] fix: remove duplicated event emitter --- .../components/search/search.component.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/app/structure-list/components/search/search.component.ts b/src/app/structure-list/components/search/search.component.ts index 5a4d7ef47..56c38e623 100644 --- a/src/app/structure-list/components/search/search.component.ts +++ b/src/app/structure-list/components/search/search.component.ts @@ -21,16 +21,7 @@ export class SearchComponent implements OnInit, OnChanges { @Output() locatationReset: EventEmitter<boolean> = new EventEmitter<boolean>(); @Output() locatationTrigger: EventEmitter<boolean> = new EventEmitter<boolean>(); @Input() locate = false; - - constructor(public searchService: SearchService, private fb: FormBuilder, private geoJsonService: GeojsonService) { - this.searchForm = this.fb.group({ - searchTerm: '', - }); - } - - @Output() searchEvent = new EventEmitter(); public modalType = AppModalType; - // Form search input public searchForm: FormGroup; // Modal variable @@ -48,10 +39,14 @@ export class SearchComponent implements OnInit, OnChanges { public confirmationModalContent = 'Afin d’ajouter votre structure,vous allez être redirigé vers le formulaire Grand Lyon à remplir.'; + constructor(public searchService: SearchService, private fb: FormBuilder, private geoJsonService: GeojsonService) { + this.searchForm = this.fb.group({ + searchTerm: '', + }); + } ngOnInit(): void { // Will store the different categories this.categories = []; - this.checkedModulesFilter = new Array(); } -- GitLab