diff --git a/src/components/Modal/GroupMemberAddModal/GroupMemberAddModal.vue b/src/components/Modal/GroupMemberAddModal/GroupMemberAddModal.vue index 0b23ea2e0..810983158 100644 --- a/src/components/Modal/GroupMemberAddModal/GroupMemberAddModal.vue +++ b/src/components/Modal/GroupMemberAddModal/GroupMemberAddModal.vue @@ -53,18 +53,10 @@ const add = async () => { isAdding.value = true const reqIds = Array.from(userIds.value) try { - if (reqIds.length === 1 && reqIds[0]) { - const userId = reqIds[0] - await apis.addUserGroupMember(props.id, { - id: userId, - role: role.value - }) - } else { - await apis.addUserGroupMember( - props.id, - reqIds.map(id => ({ id, role: role.value })) - ) - } + await apis.addUserGroupMember( + props.id, + reqIds.map(id => ({ id, role: role.value })) + ) } catch { addErrorToast('グループメンバーの追加に失敗しました') }