Skip to content

Commit

Permalink
chore: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Dec 12, 2024
1 parent 1139a88 commit 71c7b18
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -158,9 +151,6 @@ export class AutocompleteComponent
this.error = error.message
return of([])
}),
tap((suggestionsFromAction) => {
console.log('suggestionsfromaction', suggestionsFromAction)
}),
finalize(() => (this.searching = false))
)

Expand All @@ -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(() => [])
)
)

Expand Down

0 comments on commit 71c7b18

Please sign in to comment.