From 629d9431a6a8ed57cf9f4cb324d11f5ec3cec311 Mon Sep 17 00:00:00 2001 From: Arcadio Quintero Date: Thu, 18 Jul 2024 12:16:26 -0400 Subject: [PATCH] feat(edit-content) fix comment #28493 --- .../dot-category-field-search.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts index 291b06de34fc..4f2dd1481132 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-category-field/components/dot-category-field-search/dot-category-field-search.component.ts @@ -5,7 +5,7 @@ import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { InputTextModule } from 'primeng/inputtext'; -import { debounceTime, filter, tap } from 'rxjs/operators'; +import { debounceTime, distinctUntilChanged, filter, tap } from 'rxjs/operators'; import { DotMessagePipe } from '@dotcms/ui'; @@ -46,6 +46,7 @@ export class DotCategoryFieldSearchComponent { .pipe( takeUntilDestroyed(), debounceTime(DEBOUNCE_TIME), + distinctUntilChanged(), tap((value: string) => { if (value.length === 0) { this.clearInput();