@adins/ucsearch 3.0.3 → 3.0.5

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.
@@ -391,7 +391,7 @@ class UCSearchComponent {
391
391
  await this.initiateForm();
392
392
  }
393
393
  async initiateForm() {
394
- if (this.searchInput.dataInput !== undefined) {
394
+ if (this.searchInput.dataInput !== undefined && Object.keys(this.searchInput.dataInput).length !== 0) {
395
395
  this.setConfigurationData({ ...this.searchInput.dataInput });
396
396
  return;
397
397
  }
@@ -408,7 +408,7 @@ class UCSearchComponent {
408
408
  }
409
409
  this.countForm = data.component.length;
410
410
  this.isDataLoaded = true;
411
- if (this.searchInput.title != undefined && this.searchInput.title != "" && this.searchInput.dataInput === undefined) {
411
+ if (this.searchInput.title != undefined && this.searchInput.title != "") {
412
412
  this.configuration.title = this.searchInput.title;
413
413
  }
414
414
  for (let i = 0; i < this.countForm; i++) {