@sprucelabs/spruce-profile-utils 1.2.0 → 1.2.3
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.
|
@@ -74,9 +74,9 @@ class RoleSelectCardViewController extends heartwood_view_controllers_1.Abstract
|
|
|
74
74
|
name: 'requirements',
|
|
75
75
|
isRequired: true,
|
|
76
76
|
value: this.getRequirementsForRole(role.id),
|
|
77
|
-
onChange: (value) => {
|
|
77
|
+
onChange: async (value) => {
|
|
78
78
|
var _a;
|
|
79
|
-
(_a = this.onChangeHandler) === null || _a === void 0 ? void 0 : _a.call(this, role.id, value !== null && value !== void 0 ? value : 'skip');
|
|
79
|
+
await ((_a = this.onChangeHandler) === null || _a === void 0 ? void 0 : _a.call(this, role.id, value !== null && value !== void 0 ? value : 'skip'));
|
|
80
80
|
this.roles = this.roles.filter((r) => r.roleId !== role.id);
|
|
81
81
|
if (value !== 'skip') {
|
|
82
82
|
this.roles.push({
|
|
@@ -83,9 +83,9 @@ export default class RoleSelectCardViewController extends AbstractViewController
|
|
|
83
83
|
name: 'requirements',
|
|
84
84
|
isRequired: true,
|
|
85
85
|
value: this.getRequirementsForRole(role.id),
|
|
86
|
-
onChange: (value) => {
|
|
86
|
+
onChange: (value) => __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a;
|
|
88
|
-
(_a = this.onChangeHandler) === null || _a === void 0 ? void 0 : _a.call(this, role.id, value !== null && value !== void 0 ? value : 'skip');
|
|
88
|
+
yield ((_a = this.onChangeHandler) === null || _a === void 0 ? void 0 : _a.call(this, role.id, value !== null && value !== void 0 ? value : 'skip'));
|
|
89
89
|
this.roles = this.roles.filter((r) => r.roleId !== role.id);
|
|
90
90
|
if (value !== 'skip') {
|
|
91
91
|
this.roles.push({
|
|
@@ -93,7 +93,7 @@ export default class RoleSelectCardViewController extends AbstractViewController
|
|
|
93
93
|
requirements: value,
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
},
|
|
96
|
+
}),
|
|
97
97
|
choices: [
|
|
98
98
|
{
|
|
99
99
|
value: 'skip',
|