@salla.sa/twilight-components 2.14.139 → 2.14.140

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.
@@ -27649,6 +27649,10 @@ const SallaReviewsSummary = class {
27649
27649
  .then(() => this.loadSummary());
27650
27650
  }
27651
27651
  async loadSummary() {
27652
+ if (!this.itemId) {
27653
+ console.error('Error loading reviews summary: itemId is not defined');
27654
+ return this.canRender = false;
27655
+ }
27652
27656
  try {
27653
27657
  let resp = await salla.api.request(`rating/summary/${this.itemId}`);
27654
27658
  if (Array.isArray(resp.data.reviews) && !resp.data.reviews.length) {