@sprucelabs/spruce-role-utils 4.0.162 → 4.0.164

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.
@@ -75,8 +75,7 @@ class RoleSelectCardViewController extends heartwood_view_controllers_1.Abstract
75
75
  await this.handleDidChange();
76
76
  }
77
77
  async handleDidChange() {
78
- var _a;
79
- await ((_a = this.changeHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.getSelectedRoles()));
78
+ await this.changeHandler?.(this.getSelectedRoles());
80
79
  }
81
80
  getIsLoaded() {
82
81
  return this.isLoaded;
@@ -93,7 +92,7 @@ class RoleSelectCardViewController extends heartwood_view_controllers_1.Abstract
93
92
  });
94
93
  await this.activeCardVc.load();
95
94
  this.isLoaded = true;
96
- for (const select of selected !== null && selected !== void 0 ? selected : []) {
95
+ for (const select of selected ?? []) {
97
96
  await this.enableRow(select.roleId, select.requirement);
98
97
  }
99
98
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-role-utils",
3
3
  "description": "Useful role utilities",
4
- "version": "4.0.162",
4
+ "version": "4.0.164",
5
5
  "skill": {
6
6
  "namespace": "role"
7
7
  },