@reltio/components 1.4.2210 → 1.4.2211

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.
@@ -66,12 +66,8 @@ var dcrAttributesFactory = function (metadata, attributeType, attributeValue, le
66
66
  };
67
67
  var extractLineIds = function (attributeValue) {
68
68
  var _a, _b;
69
- return typeof attributeValue.value === 'object' &&
70
- 'newValue' in attributeValue.value &&
71
- 'lineIds' in attributeValue.value.newValue &&
72
- Array.isArray(attributeValue.value.newValue.lineIds)
73
- ? (_b = (_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) === null || _b === void 0 ? void 0 : _b.lineIds
74
- : attributeValue.lineIds;
69
+ var lineIds = (_b = (_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) === null || _b === void 0 ? void 0 : _b.lineIds;
70
+ return Array.isArray(lineIds) ? lineIds : attributeValue.lineIds;
75
71
  };
76
72
  var getNestedAttributeChange = function (metadata, attributeType, attributeValue, level) {
77
73
  var attributeTypeList = (0, mdm_sdk_1.getAttributeTypeSubAttributes)({}, attributeType);
@@ -63,12 +63,8 @@ var dcrAttributesFactory = function (metadata, attributeType, attributeValue, le
63
63
  };
64
64
  var extractLineIds = function (attributeValue) {
65
65
  var _a, _b;
66
- return typeof attributeValue.value === 'object' &&
67
- 'newValue' in attributeValue.value &&
68
- 'lineIds' in attributeValue.value.newValue &&
69
- Array.isArray(attributeValue.value.newValue.lineIds)
70
- ? (_b = (_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) === null || _b === void 0 ? void 0 : _b.lineIds
71
- : attributeValue.lineIds;
66
+ var lineIds = (_b = (_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value) === null || _a === void 0 ? void 0 : _a.newValue) === null || _b === void 0 ? void 0 : _b.lineIds;
67
+ return Array.isArray(lineIds) ? lineIds : attributeValue.lineIds;
72
68
  };
73
69
  var getNestedAttributeChange = function (metadata, attributeType, attributeValue, level) {
74
70
  var attributeTypeList = getAttributeTypeSubAttributes({}, attributeType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.2210",
3
+ "version": "1.4.2211",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",