Fix CRM data loading and saving
This commit is contained in:
@@ -137,7 +137,7 @@ export default new Vuex.Store({
|
||||
saveCrmData ({ commit }, data) {
|
||||
commit('loadingBegin');
|
||||
return axios({
|
||||
url: '/api/crm-selections/' + this.crmData.id,
|
||||
url: '/api/crm-selections/' + data.id,
|
||||
headers: {
|
||||
'x-auth-token': sessionStorage.getItem('token')
|
||||
},
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
this.message = 'Es ist ein Fehler aufgetreten :(';
|
||||
this.messageClass = 'alert-danger';
|
||||
}).then(() => {
|
||||
this.loaded = true;
|
||||
EventBus.$emit('scrollTo', '#myep-main');
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user