Skip to content

Commit

Permalink
Merge branch 'master' into EXUI-1079-start-enddate-for-service-banner…
Browse files Browse the repository at this point in the history
…s_NEW_LATEST
  • Loading branch information
OgunyemiO committed Aug 8, 2024
2 parents 993923e + 011f437 commit e09f957
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { iif, Observable, of } from 'rxjs';
import { debounceTime, map, switchMap, tap } from 'rxjs/operators';
import { catchError, debounceTime, map, switchMap, tap } from 'rxjs/operators';
import {
BookingCheckType, FilterConfigOption,
FilterFieldConfig,
Expand Down Expand Up @@ -93,6 +93,10 @@ export class SearchLocationComponent implements OnInit {
() => (!!term && term.length >= this.minSearchCharacters),
this.getLocations(term).pipe(
map((locations) => this.filterUnselectedLocations(locations, this.selectedLocations, this.singleMode)),
catchError(() => {
// returns false so the user is not shown the no results found message
return of(false);
}),
),
of(false)
)),
Expand Down

0 comments on commit e09f957

Please sign in to comment.