Merge Dev in Staging (#74)

This commit is contained in:
Arnaud D. Natali 2023-09-26 18:11:20 +02:00 committed by GitHub
commit 24960ccf69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ class AddClientToFolderClass extends BasePage<IPropsClass, IState> {
contact: values, contact: values,
}); });
if (!customer.uid) return; if (!customer.uid) return;
customersToLink?.push({ customer: { uid: customer.uid } } as Partial<Customer>); customersToLink?.push({ uid: customer.uid } as Partial<Customer>);
} }
if (customersToLink) { if (customersToLink) {
@ -220,7 +220,7 @@ class AddClientToFolderClass extends BasePage<IPropsClass, IState> {
return Customer.hydrate<Customer>(customer); return Customer.hydrate<Customer>(customer);
}), }),
}); });
console.log(body);
await Folders.getInstance().put(this.props.selectedFolderUid, body); await Folders.getInstance().put(this.props.selectedFolderUid, body);
this.props.router.push(`/folders/${this.props.selectedFolderUid}`); this.props.router.push(`/folders/${this.props.selectedFolderUid}`);
} }