rerobe-js-orm 2.4.92 → 2.4.93
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.
|
@@ -97,9 +97,7 @@ class ProductFormState extends FormState_1.default {
|
|
|
97
97
|
this.props.salePrice = this.calculateSalePrice();
|
|
98
98
|
}
|
|
99
99
|
setGenderFromPassedOptions() {
|
|
100
|
-
if (this.opts &&
|
|
101
|
-
this.opts.taxonomy &&
|
|
102
|
-
Object.keys(this.opts.taxonomy).length > 0) {
|
|
100
|
+
if (this.opts && this.opts.taxonomy && Object.keys(this.opts.taxonomy).length > 0) {
|
|
103
101
|
return Object.keys(this.opts.taxonomy).map((t) => ({ label: t, value: t }));
|
|
104
102
|
}
|
|
105
103
|
return options_1.gender;
|
|
@@ -293,7 +291,9 @@ class ProductFormState extends FormState_1.default {
|
|
|
293
291
|
else {
|
|
294
292
|
productCategoryOptions = options_1.productCategories;
|
|
295
293
|
}
|
|
296
|
-
const selectedCategoryOptions = this.props.productCategory
|
|
294
|
+
const selectedCategoryOptions = this.props.productCategory
|
|
295
|
+
? [{ label: this.props.productCategory, value: this.props.productCategory }]
|
|
296
|
+
: [];
|
|
297
297
|
const options = this.utilities.uniqObjArray([...productCategoryOptions, ...selectedCategoryOptions], 'value');
|
|
298
298
|
return options;
|
|
299
299
|
}
|
|
@@ -351,6 +351,7 @@ ProductStateManager.PRODUCT_STATES = {
|
|
|
351
351
|
sellRequestReviewDraft: 'SELL_REQUEST_REVIEW_DRAFT',
|
|
352
352
|
rejected: 'REJECTED',
|
|
353
353
|
hold: 'HOLD',
|
|
354
|
+
draft: 'DRAFT',
|
|
354
355
|
accepted: 'ACCEPTED',
|
|
355
356
|
sellerToDropOff: 'DROP_OFF_AT_REROBE',
|
|
356
357
|
sellerToShip: 'SHIP_TO_REROBE',
|