Skip to content

Commit

Permalink
feat(issueProvider): unset loading when search string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Nov 29, 2024
1 parent 027fbff commit 16ed24a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ export class IssueProviderTabComponent implements OnDestroy, AfterViewInit {
this.searchTxt$.pipe(
switchMap((st) => {
if (st.length < this.SEARCH_MIN_LENGTH) {
this.isLoading.set(false);
return of({ added: [], notAdded: [] });
}
return of(st).pipe(
debounceTime(300),
tap((v) => console.log('searchText1', v)),

debounceTime(400),
switchMap((searchText) => {
return this.issueProvider$.pipe(
distinctUntilChanged((a, b) => {
Expand Down

0 comments on commit 16ed24a

Please sign in to comment.