vcomply-workflow-engine 2.6.6 → 2.6.7

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.
@@ -3851,7 +3851,7 @@
3851
3851
  this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(_t = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _t === void 0 ? void 0 : _t.category_id])));
3852
3852
  var programCustomTags = ((_u = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _u === void 0 ? void 0 : _u.custom_tags) ? JSON.parse((_v = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _v === void 0 ? void 0 : _v.custom_tags) : [];
3853
3853
  programCustomTags === null || programCustomTags === void 0 ? void 0 : programCustomTags.forEach(function (tag) {
3854
- var tagData = JSON === null || JSON === void 0 ? void 0 : JSON.parse(tag);
3854
+ var tagData = typeof tag === "string" ? JSON.parse(tag) : tag;
3855
3855
  var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
3856
3856
  if (index == -1) {
3857
3857
  _this.responsibilityForm.customTags.push(tagData);