@legalplace/tagextractor 2.0.0 → 2.1.0

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.
@@ -96,7 +96,8 @@ var TagExtractor = (function () {
96
96
  return _this.getOptionCondition(optionId, index) !== false;
97
97
  });
98
98
  var parentsInputs = optionParents.map(function (optionId) {
99
- return _this.inputs.options[optionId][index];
99
+ var _a;
100
+ return ((_a = _this.inputs.options[optionId]) === null || _a === void 0 ? void 0 : _a[index]) || false;
100
101
  });
101
102
  var parentSectionId = this.getOptionParentSection(id);
102
103
  var parentSectionCondition = this.getSectionCondition(parentSectionId) !== false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/tagextractor",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "TagExtractor",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/tagextractor",
@@ -14,7 +14,7 @@
14
14
  "build": "tsc"
15
15
  },
16
16
  "dependencies": {
17
- "@legalplace/conditions-runner": "1.1.0",
17
+ "@legalplace/conditions-runner": "1.1.1",
18
18
  "@legalplace/lplogic": "2.1.6",
19
19
  "@legalplace/models-v3-types": "3.4.47",
20
20
  "@legalplace/ovc-converter": "1.1.0",
@@ -122,7 +122,8 @@ class TagExtractor {
122
122
  return this.getOptionCondition(optionId, index) !== false
123
123
  })
124
124
  const parentsInputs = optionParents.map(optionId => {
125
- return this.inputs.options[optionId][index]
125
+ // If the parent option is not already defined we set the displayed parameter to false
126
+ return this.inputs.options[optionId]?.[index] || false
126
127
  })
127
128
  const parentSectionId = this.getOptionParentSection(id)
128
129
  const parentSectionCondition = this.getSectionCondition(parentSectionId) !== false