person: post an address when creating a person

This commit is contained in:
nobohan
2022-04-15 13:41:47 +02:00
parent bea019e9bc
commit 57ed90a696
2 changed files with 75 additions and 11 deletions

View File

@@ -240,13 +240,6 @@ export default {
if (typeof data.profession !== 'undefined' && null !== data.profession) {
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
}
if (null !== data.addressId) {
console.log(data)
//TODO make a good address object
// attach the addressId
// test if this condition is safe
}
// console.log('onthefly data', data);
}
} else {