master-control 0.4.62 → 0.4.64

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.
@@ -1778,7 +1778,15 @@ class AutocompleteComponent {
1778
1778
  this.filteredOptions = (this.field().options || []).filter((option) => option.label.toLowerCase().includes(filterValue));
1779
1779
  }
1780
1780
  displayFn = (option) => {
1781
- return option && typeof option === 'object' ? option.label : option || '';
1781
+ let filteredObjectValue = '';
1782
+ let toFilterString = typeof option === 'object' && option.value ? option.value : option;
1783
+ if (!this.masterService.checkIfValueIsEmpty(this.filteredOptions)) {
1784
+ let filteredObj = this.filteredOptions.filter((opt) => ((opt.value.toLowerCase() === toFilterString.toLowerCase()) || (opt.label.toLowerCase() === toFilterString.toLowerCase())));
1785
+ if (filteredObj.length > 0 && !this.masterService.checkIfValueIsEmpty(filteredObj[0]['label'])) {
1786
+ filteredObjectValue = filteredObj[0]['label'];
1787
+ }
1788
+ }
1789
+ return filteredObjectValue;
1782
1790
  };
1783
1791
  // Utility method to get the current selected value
1784
1792
  getCurrentValue() {
@@ -4186,7 +4194,7 @@ class MedialQuestionsComponent {
4186
4194
  }
4187
4195
  preparePersonUwQuestionsObj() {
4188
4196
  this.questionList = [];
4189
- let data = this.medialQuestionResponse();
4197
+ let data = JSON.stringify(JSON.parse(this.medialQuestionResponse()));
4190
4198
  this.listOfDomainValuesForCheckBox = [];
4191
4199
  let isDisable = false;
4192
4200
  if (!this.checkIfValueIsEmpty(sessionStorage.getItem('isDisableMedicalQuestions'))) {