From 8fffd3e8c4a6a59629e543c72dc6099e69cbe91d Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Tue, 1 Aug 2023 11:54:31 +0200 Subject: [PATCH] :bug: Fixing add customers --- .../Components/Layouts/Folder/AddClientToFolder/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx b/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx index 87fd41de..f39bec59 100644 --- a/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx +++ b/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx @@ -203,9 +203,7 @@ class AddClientToFolderClass extends BasePage { const allCustomersToLink = this.state.selectedCustomers.concat(this.state.existingCustomers); let customersToLink: Partial[] = allCustomersToLink.map((customer) => { - return { - customer: { uid: customer.value }, - }; + return Customer.hydrate({ uid: customer.value as string }); }) as Partial[]; if (this.state.selectedOption === "new_customer") {