commit | b81718b34c9a33afef429b5742d3dc00dcdaca01 | [log] [tgz] |
---|---|---|
author | Arpit Agarwal <arpiagariu@gmail.com> | Tue Jul 12 14:06:55 2016 -0700 |
committer | Arpit Agarwal <arpiagariu@gmail.com> | Tue Jul 12 14:06:55 2016 -0700 |
tree | 799813d6491ac8698f7a7d8c9165977433978fc2 | |
parent | b01448e8e74bbdef97db5d15c6d0bbd1145a2e8f [diff] |
Update return value in Me.js Change-Id: I2f395569550af9a004e657b994a14310cecdfe4f
diff --git a/views/ngXosLib/xosHelpers/src/services/rest/Me.js b/views/ngXosLib/xosHelpers/src/services/rest/Me.js index ff77060..5dd1043 100644 --- a/views/ngXosLib/xosHelpers/src/services/rest/Me.js +++ b/views/ngXosLib/xosHelpers/src/services/rest/Me.js
@@ -14,7 +14,7 @@ $http.get('/api/utility/me/') .then(res => { - deferred.resolve(res); + deferred.resolve(res.data); }) .catch(e => { deferred.reject(e);
diff --git a/views/ngXosViews/tenant/src/js/createslice.js b/views/ngXosViews/tenant/src/js/createslice.js index 933542e..a522e49 100644 --- a/views/ngXosViews/tenant/src/js/createslice.js +++ b/views/ngXosViews/tenant/src/js/createslice.js
@@ -252,10 +252,8 @@ } pr.then((users) => { this.model = users; - //data = users; - //this.model = this.users; this.config.feedback.show = true; - deferred.resolve(this.model); + deferred.resolve(users); }) .catch((e) => { this.config.feedback.show = true;