diff --git a/ui/components/accounts/AccountsListRow.vue b/ui/components/accounts/AccountsListRow.vue index 3db2265b87..2b05312f22 100644 --- a/ui/components/accounts/AccountsListRow.vue +++ b/ui/components/accounts/AccountsListRow.vue @@ -95,7 +95,10 @@ export default { }) if (response.status === 201) { - this.getUsersCurrentRole() + const roleId = response.data.assignment.roleId + this.currentRole = this.roles.find(role => { + return role.id === roleId + }) } else { this.showMessage({ title: this.$gettext('Failed to change role.'),