@csmart/ngc-smart-core 1.14.19 → 1.14.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,8 @@ import { MatSnackBar } from '@angular/material/snack-bar';
17
17
  import { MatMenuModule } from '@angular/material/menu';
18
18
  import * as i1 from '@angular/common/http';
19
19
  import { HttpHeaders, HttpClientModule } from '@angular/common/http';
20
- import { Subject, of, from, lastValueFrom, throwError, EMPTY, concat } from 'rxjs';
21
- import { map, switchMap, take, catchError, mergeMap, retryWhen, delay } from 'rxjs/operators';
20
+ import { Subject, throwError, of, from, lastValueFrom, EMPTY, concat } from 'rxjs';
21
+ import { map, switchMap, catchError, take, mergeMap, retryWhen, delay } from 'rxjs/operators';
22
22
  import { connectToChild } from 'penpal';
23
23
  import * as i2 from '@azure/msal-angular';
24
24
  import * as i8$1 from '@angular/forms';
@@ -217,7 +217,11 @@ class XdmService {
217
217
  return this.httpClient.post(this.smartDataServiceUrl, { query: queryString }).pipe(map(({ data }) => data.getSelectedOffender.data));
218
218
  }), map(selectedOffender => {
219
219
  this.setSelectedOffender(selectedOffender);
220
+ this.setOffenderQuery({ offenders: [selectedOffender] });
220
221
  return selectedOffender;
222
+ }), catchError(error => {
223
+ console.log(error);
224
+ return throwError(() => error);
221
225
  }));
222
226
  }
223
227
  }