diff --git a/@salix/crud/src/client/web-access/index.js b/@salix/crud/src/client/web-access/index.js index 938fdb1da..8c371ff76 100644 --- a/@salix/crud/src/client/web-access/index.js +++ b/@salix/crud/src/client/web-access/index.js @@ -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}; } ); };