solucionado error guardado Web

This commit is contained in:
Javi Gallego 2017-01-23 07:48:39 +01:00
parent 5da711e98d
commit 07356fa42d
1 changed files with 1 additions and 3 deletions

View File

@ -15,6 +15,7 @@ export const COMPONENT = {
this.submit = function() {
if (!equalsObject(this.account, this.accountOld)) {
this.client.modify = "WebAccess";
this.account.id = this.client.id;
$http.put('/client/api/Accounts', this.account).then(
json => {
this.account = json.data;
@ -53,9 +54,6 @@ export const COMPONENT = {
json => {
this.account = json.data;
this.copyAccount();
},
json => {
this.account = {id: clientId};
}
);
};