rerobe-js-orm 4.1.3 → 4.1.5

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.
@@ -80,7 +80,7 @@ class ProductFormState extends FormState_1.default {
80
80
  this.fields.locationIds = this.fieldFactory('multiSelect', 'locationIds');
81
81
  this.fields.inventoryLocations = this.fieldFactory('multiSelect', 'inventoryLocations');
82
82
  this.fields.featuredCollections = this.fieldFactory('multiSelect', 'featuredCollections');
83
- this.fields.primaryAgeCategory = this.fieldFactory('singleSelect', 'primaryAgeCategory');
83
+ this.fields.primaryAgeCategory = this.fieldFactory('singleSelect', 'primaryAgeCategory', options_1.primaryAgeCategoryOptions);
84
84
  this.fields.tags = this.fieldFactory('multiSelect', 'tags');
85
85
  this.fields.metaDataTitle = this.fieldFactory('textInput', 'metaDataTitle');
86
86
  this.fields.metaDataDescription = this.fieldFactory('textInput', 'metaDataDescription');
@@ -752,8 +752,8 @@ class ProductFormState extends FormState_1.default {
752
752
  }
753
753
  }
754
754
  if ((_p = (_o = this.opts) === null || _o === void 0 ? void 0 : _o.primaryAgeCategories) === null || _p === void 0 ? void 0 : _p.length) {
755
- const primaryAgeCategoryOptions = this.opts.primaryAgeCategories.map((t) => ({ label: t, value: t }));
756
- options = this.utilities.uniqObjArray([...selectedPrimaryAgeCategoryOptions, ...primaryAgeCategoryOptions], 'value');
755
+ const suppliedPrimaryAgeCategoryOptions = this.opts.primaryAgeCategories.map((t) => ({ label: t, value: t }));
756
+ options = this.utilities.uniqObjArray([...selectedPrimaryAgeCategoryOptions, ...suppliedPrimaryAgeCategoryOptions], 'value');
757
757
  }
758
758
  }
759
759
  if (fieldKey === 'condition') {
@@ -200,3 +200,7 @@ export const adminStatusOptionsSimplified: {
200
200
  label: any;
201
201
  value: string;
202
202
  }[];
203
+ export const primaryAgeCategoryOptions: {
204
+ value: string;
205
+ label: string;
206
+ }[];