@reusa/ngx-reusa-app-lib 0.0.1317 → 0.0.1319

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.
@@ -13321,19 +13321,11 @@ class DynamicFormQuestionComponent {
13321
13321
  // this.logger.debug('Inside GET');
13322
13322
  this.validationService
13323
13323
  .get(`${serviceName}`)
13324
- .subscribe(res => {
13325
- this.logger.debug('res--', res, ' - res[0].length -', res);
13326
- choices.push(res);
13324
+ .subscribe((res) => {
13325
+ choices = res;
13327
13326
  let query = event.query;
13328
13327
  //let filtered: any[] = [];
13329
- for (let i = 0; i < choices.length; i++) {
13330
- let choice = choices[i];
13331
- //this.logger.debug('choice - ', choice, 'choice.text--', choice.text, 'query.toLowerCase()', query?.toLowerCase());
13332
- //if (choice.text.toLowerCase().indexOf(query.toLowerCase()) == 0) {
13333
- filtered.push(choice[0]);
13334
- //}
13335
- }
13336
- this.filterResult = filtered;
13328
+ this.filterResult = choices;
13337
13329
  this.logger.debug('this.filterResult123--', this.filterResult);
13338
13330
  }, err => {
13339
13331
  this.util.hideLoader();