From e4ae1dd475e5c3a826eecd6af934e9c30b9a722a Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 17 Feb 2021 20:23:30 +0100 Subject: [PATCH] Fixed group posting issue ref #50 --- src/components/AddContactModal.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AddContactModal.svelte b/src/components/AddContactModal.svelte index 552cacad..2ea11bce 100644 --- a/src/components/AddContactModal.svelte +++ b/src/components/AddContactModal.svelte @@ -89,7 +89,6 @@ text: "Contact is being added...", duration: -1, }).showToast(); - const groups = teams.concat(orgs).map((g) => g.id); let address = {}; if (address_checked === true) { address = { @@ -101,7 +100,7 @@ }; } let postdata = { - groups, + groups: selected_team, firstname: firstname_input_value, lastname: lastname_input_value, address,