Skip to content

Commit

Permalink
resync
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Aug 8, 2018
1 parent 1f8e361 commit 1fa2dd1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions public/network_vis_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.controller('KbnNetworkVisController', function ($scope, $sce, $timeout, P
}
}
$scope.$parent.$watchMulti(['esResponse', 'vis.params.secondNodeColor'], function ([resp, secondNodeColor]) {
if (resp && $scope.vis ) {
if (resp) {
var rawResponse = resp;
$timeout(function () {
$("#loading").hide();
Expand Down Expand Up @@ -475,11 +475,14 @@ module.controller('KbnNetworkVisController', function ($scope, $sce, $timeout, P
});
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}else{
} else if($scope.vis.aggs.bySchemaName['first'] && $scope.vis.aggs.bySchemaName['first'].length < 1){
$scope.errorCustom('Error: Please select at least one Node',1);
} else {
$("#loading").hide();
return;
}
// $timeout tail

// $timeout tail
});
}
});
Expand Down

0 comments on commit 1fa2dd1

Please sign in to comment.