Repository: lldap/lldap (language: rust)

Issue:
[BUG] if no displayname set, the dropdown list in groups should print the userID [EASY FIX]
**Describe the bug**
When the displayName of a user isn't set, their entries in the groups are blank.

**To Reproduce**
Steps to reproduce the behavior:
1. create a user without a display name
2. go to groups tabs
3. click on a group 
4. add a user with the drop-down list
5. the user's line exist but is blank. 

**Expected behavior**
i'd like to see the userID if no displayname is set


Thank you ! :)


Discussion / hints:

Fix patch:
diff --git a/app/src/components/add_group_member.rs b/app/src/components/add_group_member.rs
index 79c056cf..1afdaabe 100644
--- a/app/src/components/add_group_member.rs
+++ b/app/src/components/add_group_member.rs
@@ -155,8 +155,13 @@ impl Component for AddGroupMemberComponent {
             let to_add_user_list = self.get_selectable_user_list(ctx, user_list);
             #[allow(unused_braces)]
             let make_select_option = |user: User| {
+                let name = if user.display_name.is_empty() {
+                    user.id.clone()
+                } else {
+                    user.display_name.clone()
+                };
                 html_nested! {
-                    <SelectOption value={user.id.clone()} text={user.display_name.clone()} key={user.id} />
+                    <SelectOption value={user.id.clone()} text={name} key={user.id} />
                 }
             };
             html! {


Test patch: