ps-toolkit-ui 0.0.41 → 0.0.42

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.
@@ -5087,7 +5087,8 @@
5087
5087
  return this.Accesses.filter(function (x) { return x.Type !== exports.PermissionTypeEnum.Access; });
5088
5088
  };
5089
5089
  PermissionClass.prototype.getOption = function (a) {
5090
- return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5090
+ var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5091
+ return c.length > 0 ? c[0] : null;
5091
5092
  };
5092
5093
  PermissionClass.prototype.getUrl = function () {
5093
5094
  return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +