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();
}
},
promptForRoleSelection() {
const allRoles = this.openmct.user.getPossibleRoles();
async promptForRoleSelection() {
const allRoles = await this.openmct.user.getPossibleRoles();
const selectionOptions = allRoles.map((role) => ({
key: role,
name: role