summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-04 12:32:47 +0300
committerOfir Sonsino <os0695@att.com>2017-10-04 12:47:11 +0300
commit13b38dbfdcc4f16bfe9e7179940304aa3a351076 (patch)
tree48adf857306df73031a6ec432b490b4482409a6a /vid-app-common/src/main/webapp/app
parentd33c93a3f8c0104f2a724fc1d1ff2c130eeaaf26 (diff)
get service models from SDC - Fix
Change-Id: I936482305790ca9b01ad5d9c8c804cb8df814f91 Issue-ID: VID-74 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js
index a0030889a..8844d40a8 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js
@@ -39,8 +39,8 @@
$http.get(pathQuery)
.then(function successCallback(response) {
$scope.services = [];
- if (angular.isArray(response.data)) {
- wholeData = response.data;
+ if (response.data && angular.isArray(response.data.services)) {
+ wholeData = response.data.services;
$scope.services = $scope.filterDataWithHigerVersion(wholeData);
$scope.viewPerPage=10;
$scope.totalPage=$scope.services.length/$scope.viewPerPage;