summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-23 14:11:32 +0300
committerOfir Sonsino <os0695@att.com>2017-10-23 14:11:32 +0300
commitc3f38b5abe20df0e8ab8455dcc9d0599aba75bfd (patch)
tree2c60ceacea0c319d3710c09f2528a28c527ef6a1
parent564a0d70f57acfb87b1b832e02323b9a523278fe (diff)
Please wait fix for AAI query
Change-Id: I5b6a224b1cce477ad56074b84cb4fe922e754f55 Issue-Id: VID-79 Signed-off-by: Ofir Sonsino <os0695@att.com>
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
index 6bf16c349..74f7471d4 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js
@@ -157,7 +157,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
var namedQueryId='6e806bc2-8f9b-4534-bb68-be91267ff6c8';
AaiService.getServiceModelsByServiceType(namedQueryId,globalCustomerId,$scope.serviceTypeName,function(response) { // success
$scope.services = [];
- if (angular.isArray(response.data['inventory-response-item'])) {
+ if (angular.isArray(response.data['inventory-response-item']) && response.data['inventory-response-item'].length > 0 && response.data['inventory-response-item'][0]['inventory-response-items']) {
wholeData = response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item'];
$scope.services = $scope.filterDataWithHigerVersion(response.data['inventory-response-item'][0]['inventory-response-items']['inventory-response-item']);
$scope.serviceType = response.data['inventory-response-item'][0]['service-subscription']['service-type'];