ps-toolkit-ui 0.0.21 → 0.0.22

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.
@@ -2135,7 +2135,7 @@
2135
2135
  SidebarComponent.prototype.getSidebar = function (parentId) {
2136
2136
  var _this = this;
2137
2137
  if (parentId === void 0) { parentId = null; }
2138
- return this.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && parentId === parentId; }).map(function (s) {
2138
+ return this.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && x.ParentId === parentId; }).map(function (s) {
2139
2139
  return new SidebarClass(_this.l, s.Name, s.Controller, s.Action, s.Icon, _this.getSidebar(s.Id));
2140
2140
  });
2141
2141
  };