@legalplace/tagextractor 1.1.7 → 1.1.8

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.
@@ -36,7 +36,7 @@ var TagExtractor = (function () {
36
36
  var _this = this;
37
37
  Object.keys(this.references.options).forEach(function (id) {
38
38
  var _a = _this.references.options[id].meta, tags = _a.tags, label = _a.label;
39
- if (Array.isArray(tags) && tags.length > 0) {
39
+ if (Array.isArray(tags) && tags.length > 0 && _this.inputs.options[id]) {
40
40
  _this.inputs.options[id].forEach(function (v, index) {
41
41
  tags.forEach(function (tag) {
42
42
  if (_this.tags.options[tag] === undefined)
@@ -58,7 +58,7 @@ var TagExtractor = (function () {
58
58
  var _this = this;
59
59
  Object.keys(this.references.variables).forEach(function (id) {
60
60
  var _a = _this.references.variables[id], tags = _a.tags, label = _a.label;
61
- if (Array.isArray(tags) && tags.length > 0) {
61
+ if (Array.isArray(tags) && tags.length > 0 && _this.inputs.variables[id]) {
62
62
  _this.inputs.variables[id].forEach(function (v, index) {
63
63
  tags.forEach(function (tag) {
64
64
  if (_this.tags.variables[tag] === undefined)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/tagextractor",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "TagExtractor",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/tagextractor",
@@ -38,4 +38,4 @@
38
38
  "redux-mock-store": "^1.5.3",
39
39
  "ts-jest": "^24.0.2"
40
40
  }
41
- }
41
+ }
@@ -46,7 +46,7 @@ class TagExtractor {
46
46
  Object.keys(this.references.options).forEach(id => {
47
47
  const { tags, label } = this.references.options[id].meta
48
48
 
49
- if (Array.isArray(tags) && tags.length > 0) {
49
+ if (Array.isArray(tags) && tags.length > 0 && this.inputs.options[id]) {
50
50
  this.inputs.options[id].forEach((v, index) => {
51
51
  tags.forEach(tag => {
52
52
  if (this.tags.options[tag] === undefined) this.tags.options[tag] = []
@@ -71,7 +71,7 @@ class TagExtractor {
71
71
  Object.keys(this.references.variables).forEach(id => {
72
72
  const { tags, label } = this.references.variables[id]
73
73
 
74
- if (Array.isArray(tags) && tags.length > 0) {
74
+ if (Array.isArray(tags) && tags.length > 0 && this.inputs.variables[id]) {
75
75
  this.inputs.variables[id].forEach((v, index) => {
76
76
  tags.forEach(tag => {
77
77
  if (this.tags.variables[tag] === undefined) this.tags.variables[tag] = []