vcomply-workflow-engine 2.1.92 → 2.1.93

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.
@@ -24442,10 +24442,11 @@
24442
24442
  var _this = this;
24443
24443
  this.programService.getRoles().subscribe({
24444
24444
  next: function (res) {
24445
- var _a, _b, _c, _d;
24445
+ var _a, _b, _c, _d, _e, _f, _g;
24446
24446
  _this.lists.ROLES = res;
24447
- var defaultVal = (_d = (_c = (_b = (_a = _this.lists) === null || _a === void 0 ? void 0 : _a.ROLES) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.filter(function (ele) { return (ele === null || ele === void 0 ? void 0 : ele.roleType) === "system role"; })) === null || _d === void 0 ? void 0 : _d.map(function (ele) { return ele === null || ele === void 0 ? void 0 : ele._id; });
24448
- _this.lists.SYSTEM_ROLE_IDS = defaultVal;
24447
+ var defaultSystemVal = (_d = (_c = (_b = (_a = _this.lists) === null || _a === void 0 ? void 0 : _a.ROLES) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.filter(function (ele) { return (ele === null || ele === void 0 ? void 0 : ele.roleType) === "system role"; })) === null || _d === void 0 ? void 0 : _d.map(function (ele) { return ele === null || ele === void 0 ? void 0 : ele._id; });
24448
+ var defaultVal = (_g = (_f = (_e = _this.lists) === null || _e === void 0 ? void 0 : _e.ROLES) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.filter(function (ele) { return (ele === null || ele === void 0 ? void 0 : ele.roleType) === "system role"; });
24449
+ _this.lists.SYSTEM_ROLE_IDS = defaultSystemVal;
24449
24450
  if (_this.mode !== 'EDIT') {
24450
24451
  _this.setFormField('program_roles', defaultVal);
24451
24452
  _this.fetchUsersAssociatedWithRoles();