@contrail/util 1.0.43 → 1.0.44

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.
@@ -33,7 +33,9 @@ function areItemPropertyValuesEqual(property, itemOne, itemTwo) {
33
33
  const propertyValueOne = itemOne[propertyKey];
34
34
  const propertyValueTwo = itemTwo[propertyKey];
35
35
  if (property.propertyType === types_1.PropertyType.MultiSelect) {
36
- return areArraysEqualIgnoreOrder(propertyValueOne, propertyValueTwo);
36
+ const propertyValueOneAsArray = typeof propertyValueOne === 'string' ? propertyValueOne.split(',') : propertyValueOne;
37
+ const propertyValueTwoAsArray = typeof propertyValueTwo === 'string' ? propertyValueTwo.split(',') : propertyValueTwo;
38
+ return areArraysEqualIgnoreOrder(propertyValueOneAsArray, propertyValueTwoAsArray);
37
39
  }
38
40
  if (property.propertyType === types_1.PropertyType.SizeRange) {
39
41
  const isOfSameSizeRangeTemplate = ((_a = itemOne === null || itemOne === void 0 ? void 0 : itemOne.sizeRangeTemplate) === null || _a === void 0 ? void 0 : _a.id) === ((_b = itemTwo === null || itemTwo === void 0 ? void 0 : itemTwo.sizeRangeTemplate) === null || _b === void 0 ? void 0 : _b.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "General javascript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",