person: add address when creating a person

This commit is contained in:
nobohan
2022-04-15 11:11:41 +02:00
parent 946ae31d11
commit ae45f5f40b
4 changed files with 43 additions and 2 deletions

View File

@@ -240,6 +240,13 @@ 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 {