rerobe-js-orm 3.3.2 → 3.3.3
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/lib/models/Product.js +2 -2
- package/package.json +1 -1
package/lib/models/Product.js
CHANGED
|
@@ -517,7 +517,7 @@ class Product extends Base_1.default {
|
|
|
517
517
|
.map((attribute) => (attribute ? `<li>${attribute}</li>` : ''))
|
|
518
518
|
.filter(Boolean) // Removes any falsey values
|
|
519
519
|
.join('\n');
|
|
520
|
-
descriptionHTML += sectionHTML ? `<
|
|
520
|
+
descriptionHTML += sectionHTML ? `<strong>${t(section.title)}</strong>\n<ul>\n${sectionHTML}\n</ul>` : '';
|
|
521
521
|
});
|
|
522
522
|
// Generate HTML for additional sections
|
|
523
523
|
additionalSections.forEach((section) => {
|
|
@@ -526,7 +526,7 @@ class Product extends Base_1.default {
|
|
|
526
526
|
.map((attribute) => (attribute ? `<li>${t(attribute)}</li>` : ''))
|
|
527
527
|
.filter(Boolean) // Removes any falsey values
|
|
528
528
|
.join('\n');
|
|
529
|
-
descriptionHTML += sectionHTML ? `<
|
|
529
|
+
descriptionHTML += sectionHTML ? `<strong>${t(section.title)}</strong>\n<ul>\n${sectionHTML}\n</ul>` : '';
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
return t(this.attributes.description) + (descriptionHTML ? `\n${descriptionHTML}` : '');
|