From 4f7cc09c66f092341deaeef1966b284af3341428 Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Mon, 9 Dec 2024 15:25:07 +0100 Subject: [PATCH] chore: remove console logs --- .../lib/autocomplete/autocomplete.component.ts | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts index 55a058191..bf81d7278 100644 --- a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +++ b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts @@ -128,18 +128,11 @@ export class AutocompleteComponent distinctUntilChanged(), debounceTime(400) ) - ).pipe( - tap((suggestionsFromAction) => { - console.log('newValue', suggestionsFromAction) - }) ) const externalValueChange$ = this.control.valueChanges.pipe( filter((value) => typeof value === 'object' && value.title), - map((item) => item.title), - tap((suggestionsFromAction) => { - console.log('externalValueChange', suggestionsFromAction) - }) + map((item) => item.title) ) // this observable emits arrays of suggestions loaded using the given action @@ -158,9 +151,6 @@ export class AutocompleteComponent this.error = error.message return of([]) }), - tap((suggestionsFromAction) => { - console.log('suggestionsfromaction', suggestionsFromAction) - }), finalize(() => (this.searching = false)) ) @@ -169,10 +159,7 @@ export class AutocompleteComponent // if a new value is under the min char count, clear suggestions newValue$.pipe( filter((value: string) => value.length < this.minCharacterCount), - map(() => []), - tap((suggestionsFromAction) => { - console.log('suggestionsfromCLEAR', suggestionsFromAction) - }) + map(() => []) ) )