This is an automated email from the ASF dual-hosted git repository. boblu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push: new 28d3a9d KYLIN-4183 Clicking 'Submit' button is unresponsive, when the segment is not selected. 28d3a9d is described below commit 28d3a9d5c3ff59f0e48d6bdcfdf543a06bf5915b Author: Kehua Wu <wu.ke...@zte.com.cn> AuthorDate: Mon Sep 30 09:56:46 2019 +0800 KYLIN-4183 Clicking 'Submit' button is unresponsive, when the segment is not selected. --- webapp/app/js/controllers/cubes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js index 69d17be..7000581 100644 --- a/webapp/app/js/controllers/cubes.js +++ b/webapp/app/js/controllers/cubes.js @@ -1075,7 +1075,7 @@ var lookupRefreshCtrl = function($scope, scope, CubeList, $modalInstance, CubeSe SweetAlert.swal('Warning', 'Lookup table not existed in cube', 'warning'); return; } else { - if ($scope.lookup.select.segments.length == 0) { + if (!$scope.lookup.select.segments || $scope.lookup.select.segments.length == 0) { SweetAlert.swal('Warning', 'Segment should not be empty', 'warning'); return; }