From c3f38b5abe20df0e8ab8455dcc9d0599aba75bfd Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Mon, 23 Oct 2017 14:11:32 +0300 Subject: Please wait fix for AAI query Change-Id: I5b6a224b1cce477ad56074b84cb4fe922e754f55 Issue-Id: VID-79 Signed-off-by: Ofir Sonsino --- .../main/webapp/app/vid/scripts/controller/aaiSubscriberController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common') 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']; -- cgit 1.2.3-korg