Suppress role selection if no roles available (#6802)

This commit is contained in:
Andrew Henry 2023-07-14 16:22:25 -07:00 committed by GitHub
parent e386036dbf
commit 662d14354c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,9 @@ export default {
name: role
}));
// automatically select only role option
if (selectionOptions.length === 0) {
return;
}
if (selectionOptions.length === 1) {
this.updateRole(selectionOptions[0].key);
return;