household address: fix POST household address

This commit is contained in:
nobohan 2021-06-07 16:54:16 +02:00
parent f39fe05dd5
commit 03a7ec389b

View File

@ -8,7 +8,9 @@
export const postAddressToHousehold = (householdId, addressId) => {
console.log(householdId);
console.log(addressId);
const body = {'address': addressId};
const body = {
'id': addressId
};
const url = `/api/1.0/person/household/${householdId}/address.json`
return fetch(url, {
method: 'POST',