@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.
- package/dist/cjs/salla-add-product-button_48.cjs.entry.js +4 -0
- package/dist/cjs/salla-add-product-button_48.cjs.entry.js.map +1 -1
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +4 -0
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js.map +1 -1
- package/dist/components/salla-reviews-summary2.js +4 -0
- package/dist/components/salla-reviews-summary2.js.map +1 -1
- package/dist/esm/salla-add-product-button_48.entry.js +4 -0
- package/dist/esm/salla-add-product-button_48.entry.js.map +1 -1
- package/dist/esm-es5/salla-add-product-button_48.entry.js +1 -1
- package/dist/esm-es5/salla-add-product-button_48.entry.js.map +1 -1
- package/dist/twilight/{p-a3c95fbd.entry.js → p-098f88d1.entry.js} +2 -2
- package/dist/twilight/{p-a3c95fbd.entry.js.map → p-098f88d1.entry.js.map} +1 -1
- package/dist/twilight/p-40f204a6.system.js +1 -1
- package/dist/twilight/{p-7bd8bfbe.system.entry.js → p-6ace6f76.system.entry.js} +2 -2
- package/dist/twilight/{p-7bd8bfbe.system.entry.js.map → p-6ace6f76.system.entry.js.map} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +5 -5
|
@@ -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) {
|