CourseLocation: load initAddressContext() earlier allow AddAddress to getInitialAddress() (fix)

This commit is contained in:
Mathieu Jaumotte 2021-09-22 19:41:17 +02:00
parent f7ec87e012
commit 5d99e261e1
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ export default {
console.log('Mounted now !'); console.log('Mounted now !');
if (this.context.edit) { if (this.context.edit) {
console.log('getInitialAddress'); console.log('getInitialAddress'); // !!!
this.getInitialAddress(this.context.addressId); this.getInitialAddress(this.context.addressId);
} }
this.openShowPane(); this.openShowPane();

View File

@ -152,7 +152,7 @@ export default {
this.$store.commit('setEditContextTrue', payload); this.$store.commit('setEditContextTrue', payload);
} }
}, },
mounted() { created() {
this.initAddressContext(); this.initAddressContext();
console.log('ac.locationStatus', this.accompanyingCourse.locationStatus); console.log('ac.locationStatus', this.accompanyingCourse.locationStatus);