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.
@@ -3471,7 +3471,7 @@ class WorkflowComplianceComponent {
3471
3471
  this.responsibilityForm.program_selected_ids = [...new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories), ...new Set([(_t = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _t === void 0 ? void 0 : _t.category_id])];
3472
3472
  const 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) : [];
3473
3473
  programCustomTags === null || programCustomTags === void 0 ? void 0 : programCustomTags.forEach((tag) => {
3474
- const tagData = JSON === null || JSON === void 0 ? void 0 : JSON.parse(tag);
3474
+ const tagData = typeof tag === "string" ? JSON.parse(tag) : tag;
3475
3475
  const index = this.responsibilityForm.customTags.findIndex((tagElement) => tagElement.tag_name == tagData.tag_name);
3476
3476
  if (index == -1) {
3477
3477
  this.responsibilityForm.customTags.push(tagData);