@sunbird-cb/utils 1.0.14 → 1.0.15

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.
@@ -4643,7 +4643,7 @@
4643
4643
  pdata: __assign({}, this.pData, { id: this.pData.id }),
4644
4644
  env: page.module || (this.telemetryConfig && this.telemetryConfig.env),
4645
4645
  },
4646
- object: __assign({ id: page.objectId }, (data.object)),
4646
+ object: __assign({ id: page.objectId }, ((data) ? data.object : {})),
4647
4647
  };
4648
4648
  $t.impression(edata, config);
4649
4649
  }
@@ -4653,7 +4653,7 @@
4653
4653
  pdata: __assign({}, this.pData, { id: this.pData.id }),
4654
4654
  env: page.module || '',
4655
4655
  },
4656
- object: __assign({}, (data.object)),
4656
+ object: __assign({}, ((data) ? data.object : {})),
4657
4657
  });
4658
4658
  }
4659
4659
  this.previousUrl = page.pageUrl;