From e4839346f61d478b35b5f661e61e133670aaa27b Mon Sep 17 00:00:00 2001 From: nelo Date: Mon, 30 Jan 2017 08:47:56 +0100 Subject: [PATCH] back solo si todo correcto --- @salix/crud/src/client/addresses-data-edit/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/@salix/crud/src/client/addresses-data-edit/index.js b/@salix/crud/src/client/addresses-data-edit/index.js index 1d13b0fe5b..6ad6cab97a 100644 --- a/@salix/crud/src/client/addresses-data-edit/index.js +++ b/@salix/crud/src/client/addresses-data-edit/index.js @@ -19,12 +19,10 @@ export const COMPONENT = { var newAddress = modified(this.address, this.addressOld); $http.put(`/client/api/Addresses/${this.addressOld.id}`, newAddress).then( json => { - this.address = json.data; - this.copyAddress(); + $window.history.back(); } ); } - $window.history.back(); }; this.copyAddress = () => {