diff --git a/web/src/settings_users.js b/web/src/settings_users.js index 05fc0bee6c..5e0f87cd0c 100644 --- a/web/src/settings_users.js +++ b/web/src/settings_users.js @@ -440,7 +440,10 @@ export function update_user_data(user_id, new_data) { } if (new_data.role !== undefined) { - $user_row.find(".user_role").text(people.get_user_type(user_id)); + const user_type = people.get_user_type(user_id); + if (user_type) { + $user_row.find(".user_role").text(user_type); + } } }