rerobe-js-orm 3.0.24 → 3.0.25
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 +3 -2
- package/package.json +1 -1
package/lib/models/Product.js
CHANGED
|
@@ -72,7 +72,7 @@ class Product extends Base_1.default {
|
|
|
72
72
|
purchasePrice: (props === null || props === void 0 ? void 0 : props.purchasePrice) || '',
|
|
73
73
|
yearPurchased: (props === null || props === void 0 ? void 0 : props.yearPurchased) || '',
|
|
74
74
|
salesChannel: (props === null || props === void 0 ? void 0 : props.salesChannel) || [],
|
|
75
|
-
sizeComment: (props === null || props === void 0 ? void 0 : props.sizeComment) || '
|
|
75
|
+
sizeComment: (props === null || props === void 0 ? void 0 : props.sizeComment) || '',
|
|
76
76
|
salePrice: (props === null || props === void 0 ? void 0 : props.salePrice) || '',
|
|
77
77
|
isOnSale: (props === null || props === void 0 ? void 0 : props.isOnSale) || '',
|
|
78
78
|
discountType: (props === null || props === void 0 ? void 0 : props.discountType) || '',
|
|
@@ -432,6 +432,7 @@ class Product extends Base_1.default {
|
|
|
432
432
|
return this.utilities.capitalizeString(result).trim();
|
|
433
433
|
}
|
|
434
434
|
autoCreateDescriptionHTML() {
|
|
435
|
+
var _a;
|
|
435
436
|
const customHeading = false; // ToDo: Add as an attribute;
|
|
436
437
|
const color = this.filterAttributes.color;
|
|
437
438
|
const productStyle = this.filterAttributes.productStyle.join(', ');
|
|
@@ -442,7 +443,7 @@ class Product extends Base_1.default {
|
|
|
442
443
|
const materials = this.materialCompJoinedString();
|
|
443
444
|
const sizeComment = this.consignmentAttributes.sizeComment;
|
|
444
445
|
const measurements = this.measurementsJoinedString(this.filterAttributes.measurements);
|
|
445
|
-
const fit = options_1.sizeCommentOptions.filter((option) => option.value === sizeComment)[0].label;
|
|
446
|
+
const fit = ((_a = options_1.sizeCommentOptions.filter((option) => option.value === sizeComment)[0]) === null || _a === void 0 ? void 0 : _a.label) || '';
|
|
446
447
|
const descriptionObj = {
|
|
447
448
|
title: customHeading ? `<p>${customHeading}</p>\n` : 'REMOVE_ME',
|
|
448
449
|
line1: `<ul>\n`,
|