Make promptForRoleSelection async to allow for awaiting getPossibleRoles

This commit is contained in:
Khalid Adil 2023-07-12 17:00:11 -05:00
parent bd1433db62
commit 2854074307

View File

@ -67,8 +67,8 @@ export default {
this.promptForRoleSelection(); this.promptForRoleSelection();
} }
}, },
promptForRoleSelection() { async promptForRoleSelection() {
const allRoles = this.openmct.user.getPossibleRoles(); const allRoles = await this.openmct.user.getPossibleRoles();
const selectionOptions = allRoles.map((role) => ({ const selectionOptions = allRoles.map((role) => ({
key: role, key: role,
name: role name: role