fix: assign contacts customer/vendor in make jorunal.

This commit is contained in:
a.bouhuolia
2021-04-19 18:14:43 +02:00
parent fbe39b8e9d
commit 537150b222
8 changed files with 52 additions and 36 deletions

View File

@@ -12,10 +12,7 @@ export default function ContactsListCellRenderer({
}) {
const handleContactSelected = useCallback(
(contact) => {
updateData(index, id, {
contact_id: contact.id,
contact_type: contact.contact_type,
});
updateData(index, 'contact_id', contact.id);
},
[updateData, index, id],
);