mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1230: #2995 Kundensuche doppelter Request im Filter behoben
#2995 Kundensuche doppelter Request im Filter behoben Related work items: #2995
This commit is contained in:
committed by
Nino Righi
parent
4c98a73204
commit
b21fbc974c
@@ -32,10 +32,10 @@ export class CustomerSearchResultComponent implements OnInit, OnDestroy {
|
||||
takeUntil(this._onDestroy$),
|
||||
filter((filter) => !!filter),
|
||||
debounceTime(10),
|
||||
withLatestFrom(this.store.items$)
|
||||
withLatestFrom(this.store.items$, this.store.fetching$)
|
||||
)
|
||||
.subscribe(([_, items]) => {
|
||||
if (items?.length === 0) {
|
||||
.subscribe(([_, items, fetching]) => {
|
||||
if (items?.length === 0 && !fetching) {
|
||||
this.store.search({ clear: true });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user