mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix 500: in edit context, we don't need to postAddressTo a second time !
This commit is contained in:
parent
44313b507a
commit
72cd9f452e
@ -539,6 +539,7 @@ export default {
|
||||
postAddressTo(payload, postTo)
|
||||
{
|
||||
console.log('postAddressTo', postTo);
|
||||
if (!this.context.edit) {
|
||||
switch (postTo) {
|
||||
case 'household':
|
||||
postAddressToHousehold(payload.entityId, payload.addressId)
|
||||
@ -581,6 +582,12 @@ export default {
|
||||
})
|
||||
;
|
||||
}
|
||||
} else {
|
||||
// address is already posted, just finish !
|
||||
if (this.options.redirectToBackUrl) {
|
||||
window.location.assign(payload.backUrl);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user